main.cpp 572 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * main.cpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #include "main.h"
  11. #include "mainwindow_moc.h"
  12. #include <QApplication>
  13. int main(int argc, char * argv[])
  14. {
  15. int result;
  16. #ifdef VCMI_IOS
  17. {
  18. #endif
  19. QApplication vcmilauncher(argc, argv);
  20. MainWindow mainWindow;
  21. mainWindow.show();
  22. result = vcmilauncher.exec();
  23. #ifdef VCMI_IOS
  24. }
  25. if (result == 0)
  26. launchGame(argc, argv);
  27. #endif
  28. return result;
  29. }