mirror-chatterino2/main.cpp
2017-01-28 23:12:18 +01:00

44 lines
774 B
C++

#include "channels.h"
#include "colorscheme.h"
#include "emojis.h"
#include "emotes.h"
#include "ircmanager.h"
#include "resources.h"
#include "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::getInstance().load();
Resources::load();
Emojis::loadEmojis();
Emotes::loadGlobalEmotes();
ColorScheme::getInstance().setColors(0, -0.8);
Windows::load();
MainWindow &w = Windows::getMainWindow();
w.show();
IrcManager::connect();
int ret = a.exec();
Settings::getInstance().save();
Windows::save();
return ret;
}