main.cpp 510 Bytes
Newer Older
Stefan Pfeifer's avatar
Stefan Pfeifer committed
1 2
#include "gui/MainWindow.hpp"

3
int main(int argc, char *argv[])
Stefan Pfeifer's avatar
Stefan Pfeifer committed
4
{
5
    QApplication app(argc, argv);
6
    setlocale(LC_NUMERIC, "C");
Stefan Pfeifer's avatar
Stefan Pfeifer committed
7

Stefan Pfeifer's avatar
Stefan Pfeifer committed
8
    QGuiApplication::setApplicationDisplayName("Bow Simulator");
Stefan Pfeifer's avatar
Stefan Pfeifer committed
9 10
    QGuiApplication::setApplicationVersion("0.1.0");
    QGuiApplication::setOrganizationDomain("https://bow-simulator.sourceforge.net");
Stefan Pfeifer's avatar
Stefan Pfeifer committed
11

12 13
    QStringList args = QApplication::arguments();
    MainWindow window(args.size() == 1 ? ":/bows/default.bow" : args.at(1));
14
    window.show();
Stefan Pfeifer's avatar
Stefan Pfeifer committed
15

16
    return app.exec();
Stefan Pfeifer's avatar
Stefan Pfeifer committed
17
}
18