2017-07-13 10:26:03 +02:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
2017-01-17 13:17:37 +02:00
|
|
|
#include <QApplication>
|
2013-08-22 20:47:49 +03:00
|
|
|
#include "StdInc.h"
|
2013-08-24 23:11:51 +03:00
|
|
|
#include "mainwindow_moc.h"
|
2016-08-30 20:54:37 +02:00
|
|
|
#include "sdldisplayquery.h"
|
2013-08-22 17:22:49 +03:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2017-01-17 13:17:37 +02:00
|
|
|
QApplication vcmilauncher(argc, argv);
|
2016-08-30 20:54:37 +02:00
|
|
|
auto displayList = getDisplays();
|
2017-01-17 13:17:37 +02:00
|
|
|
MainWindow mainWindow(displayList);
|
|
|
|
mainWindow.show();
|
|
|
|
return vcmilauncher.exec();
|
2013-08-22 17:22:49 +03:00
|
|
|
}
|