2023-08-06 08:48:11 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-04-14 08:24:06 -04:00
|
|
|
#include <QApplication>
|
|
|
|
|
2023-04-09 15:32:09 -04:00
|
|
|
#include <QStyle>
|
2023-08-06 08:48:11 -04:00
|
|
|
#include <physis.hpp>
|
2023-04-09 15:32:09 -04:00
|
|
|
|
2023-09-23 15:45:38 -04:00
|
|
|
#include "aboutdata.h"
|
2022-04-14 08:24:06 -04:00
|
|
|
#include "mainwindow.h"
|
2023-09-23 15:26:00 -04:00
|
|
|
#include "settings.h"
|
2022-04-14 08:24:06 -04:00
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
2023-10-10 17:55:49 -04:00
|
|
|
customizeAboutData(QStringLiteral("sagasu"), QStringLiteral("Sagasu"), QStringLiteral("Program to explore FFXIV data archives."));
|
2023-09-23 15:45:38 -04:00
|
|
|
|
2023-04-09 15:32:09 -04:00
|
|
|
physis_initialize_logging();
|
|
|
|
|
2023-09-26 00:37:55 -04:00
|
|
|
app.setStyle(QStringLiteral("Windows"));
|
2022-04-14 08:24:06 -04:00
|
|
|
|
2023-09-23 15:26:00 -04:00
|
|
|
const QString gameDir{getGameDirectory()};
|
|
|
|
const std::string gameDirStd{gameDir.toStdString()};
|
|
|
|
MainWindow w(physis_gamedata_initialize(gameDirStd.c_str()));
|
2022-04-14 08:24:06 -04:00
|
|
|
w.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|