view src/main.cc @ 251:4d635d3e168a

*: remove stupid windows build it doesn't even work anyway.
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:18:23 -0500
parents c130f47f6f48
children 862d0d8619f6
line wrap: on
line source

#include "core/session.h"
#include "core/anime_db.h"
#include "core/strings.h"
#include "services/anilist.h"
#include "gui/window.h"

#include <QApplication>
#include <QStyleFactory>
#include <QTranslator>
#include <QLocale>

#include <iostream>

Session session;

int main(int argc, char** argv) {
	QApplication app(argc, argv);
	app.setApplicationName("minori");
	app.setApplicationDisplayName("Minori");
	app.setAttribute(Qt::AA_DontShowIconsInMenus, true);

	session.config.Load();
	Anime::db.LoadDatabaseFromDisk();

	MainWindow window;

	window.resize(941, 750);
	window.setWindowTitle("Minori");
	window.show();

	return app.exec();
}