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-03-16 00:31:24 -04:00
|
|
|
#include <QApplication>
|
2023-04-09 15:28:32 -04:00
|
|
|
#include <physis.hpp>
|
2022-03-15 15:34:38 -04:00
|
|
|
|
2023-09-23 15:45:38 -04:00
|
|
|
#include "aboutdata.h"
|
2022-03-16 00:31:24 -04:00
|
|
|
#include "mainwindow.h"
|
2023-09-23 15:26:00 -04:00
|
|
|
#include "settings.h"
|
2022-03-15 15:34:38 -04:00
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
2022-03-16 00:31:24 -04:00
|
|
|
QApplication app(argc, argv);
|
2022-03-15 15:34:38 -04:00
|
|
|
|
2023-10-10 17:55:39 -04:00
|
|
|
customizeAboutData(QStringLiteral("karuku"), QStringLiteral("Karuku"), QStringLiteral("Program to view FFXIV Excel files."));
|
2023-09-23 15:45:38 -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-03-16 00:31:24 -04:00
|
|
|
w.show();
|
2022-03-15 15:34:38 -04:00
|
|
|
|
2022-03-16 00:31:24 -04:00
|
|
|
return app.exec();
|
2022-03-15 15:34:38 -04:00
|
|
|
}
|