1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-21 19:57:44 +00:00
novus/mdlviewer/src/main.cpp

23 lines
643 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#include <QApplication>
#include <physis.hpp>
#include "aboutdata.h"
#include "mainwindow.h"
#include "settings.h"
2023-10-12 23:45:13 -04:00
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
2023-10-12 23:45:13 -04:00
customizeAboutData(QStringLiteral("mdlviewer"), QStringLiteral("MDLViewer"), QStringLiteral("Program to view FFXIV MDL files."));
const QString gameDir{getGameDirectory()};
const std::string gameDirStd{gameDir.toStdString()};
MainWindow w(physis_gamedata_initialize(gameDirStd.c_str()));
w.show();
return app.exec();
}