mirror-chatterino2/main.cpp
2017-01-23 09:49:30 +01:00

38 lines
704 B
C++

#include "channels.h"
#include "colorscheme.h"
#include "emojis.h"
#include "ircmanager.h"
#include "resources.h"
#include "settings/settings.h"
#include "widgets/mainwindow.h"
#include "windows.h"
#include <QApplication>
#include <QClipboard>
using namespace chatterino;
using namespace chatterino::widgets;
int
main(int argc, char *argv[])
{
QApplication a(argc, argv);
settings::Settings::getInstance().load();
Resources::load();
Emojis::loadEmojis();
ColorScheme::instance().setColors(0, -0.8);
MainWindow &w = Windows::getMainWindow();
w.show();
IrcManager::connect();
int ret = a.exec();
settings::Settings::getInstance().save();
return ret;
}