view src/main.cc @ 247:1ae4d8b28a5c

autotools/windres: use AC_PROG_SED for sed sed is actually surprisingly unportable. on mingw this shouldn't be a problem, but alas, we should use it anyway
author Paper <mrpapersonic@gmail.com>
date Wed, 24 Jan 2024 20:15:35 -0500
parents 4d461ef7d424
children c130f47f6f48
line wrap: on
line source

#include "core/session.h"
#include "core/anime_db.h"
#include "core/strings.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.setAttribute(Qt::AA_DontShowIconsInMenus, true);

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

	MainWindow window;

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

	return app.exec();
}