main.cpp 763 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. // Conan workaround https://github.com/conan-io/conan-center-index/issues/13332
  14. #ifdef VCMI_IOS
  15. #if __has_include("QIOSIntegrationPlugin.h")
  16. #include "QIOSIntegrationPlugin.h"
  17. #endif
  18. #endif
  19. int main(int argc, char * argv[])
  20. {
  21. int result;
  22. #ifdef VCMI_IOS
  23. {
  24. #endif
  25. QApplication vcmilauncher(argc, argv);
  26. MainWindow mainWindow;
  27. mainWindow.show();
  28. result = vcmilauncher.exec();
  29. #ifdef VCMI_IOS
  30. }
  31. if (result == 0)
  32. launchGame(argc, argv);
  33. #endif
  34. return result;
  35. }