mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
47 lines
952 B
C++
47 lines
952 B
C++
#include "channelmanager.h"
|
|
#include "colorscheme.h"
|
|
#include "emojis.h"
|
|
#include "emotemanager.h"
|
|
#include "ircmanager.h"
|
|
#include "logging/loggingmanager.h"
|
|
#include "resources.h"
|
|
#include "settingsmanager.h"
|
|
#include "widgets/mainwindow.h"
|
|
#include "windowmanager.h"
|
|
|
|
#include <QApplication>
|
|
#include <QClipboard>
|
|
#include <boost/signals2.hpp>
|
|
|
|
using namespace chatterino;
|
|
using namespace chatterino::widgets;
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
chatterino::logging::init();
|
|
SettingsManager::getInstance().load();
|
|
Resources::load();
|
|
Emojis::loadEmojis();
|
|
EmoteManager::getInstance().loadGlobalEmotes();
|
|
|
|
ColorScheme::getInstance().init();
|
|
|
|
WindowManager::load();
|
|
|
|
MainWindow &w = WindowManager::getMainWindow();
|
|
w.show();
|
|
|
|
IrcManager::getInstance().connect();
|
|
|
|
int ret = a.exec();
|
|
|
|
SettingsManager::getInstance().save();
|
|
|
|
WindowManager::save();
|
|
|
|
return ret;
|
|
}
|