mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-20 20:23:03 +02:00
21074e13c3
This make relative paths work properly when launched from DMG or from different directory.
23 lines
523 B
C++
23 lines
523 B
C++
/*
|
|
* main.cpp, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#include <QApplication>
|
|
#include "StdInc.h"
|
|
#include "mainwindow_moc.h"
|
|
#include "sdldisplayquery.h"
|
|
|
|
int main(int argc, char * argv[])
|
|
{
|
|
QApplication vcmilauncher(argc, argv);
|
|
auto displayList = getDisplays();
|
|
MainWindow mainWindow(displayList);
|
|
mainWindow.show();
|
|
return vcmilauncher.exec();
|
|
}
|