comparison src/main.cc @ 236:4d461ef7d424

HUGE UPDATE: convert build system to autotools why? because cmake sucks :)
author Paper <mrpapersonic@gmail.com>
date Fri, 19 Jan 2024 00:24:02 -0500
parents adc20fa321c1
children c130f47f6f48
comparison
equal deleted inserted replaced
235:593108b3d555 236:4d461ef7d424
1 #include "core/session.h" 1 #include "core/session.h"
2 #include "core/anime_db.h" 2 #include "core/anime_db.h"
3 #include "core/strings.h"
3 #include "gui/window.h" 4 #include "gui/window.h"
4 #include <QApplication> 5 #include <QApplication>
5 #include <QStyleFactory> 6 #include <QStyleFactory>
6 #include <QTranslator> 7 #include <QTranslator>
7 #include <QLocale> 8 #include <QLocale>
8 9
10 #include <iostream>
11
9 Session session; 12 Session session;
10 13
11 int main(int argc, char** argv) { 14 int main(int argc, char** argv) {
12 QApplication app(argc, argv); 15 QApplication app(argc, argv);
13 #if !(defined(WIN32) || defined(MACOSX)) 16 app.setAttribute(Qt::AA_DontShowIconsInMenus, true);
14 /* force Fusion */
15 app.setStyle("Fusion");
16 #endif
17 17
18 session.config.Load(); 18 session.config.Load();
19 session.config.locale.RefreshAvailableLocales(); 19 session.config.locale.RefreshAvailableLocales();
20 Anime::db.LoadDatabaseFromDisk(); 20 Anime::db.LoadDatabaseFromDisk();
21 21