Changeset 7424 for sandbox_qt/src/orxonox
- Timestamp:
- Sep 12, 2010, 2:48:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox_qt/src/orxonox/Main.cc
r7423 r7424 39 39 #include <QCoreApplication> 40 40 41 #include "core/Game.h" 41 #include "util/Debug.h" 42 #include "core/CommandlineParser.h" 43 #include "core/Core.h" 42 44 #include "Main.h" 43 45 44 46 namespace orxonox 45 47 { 48 SetCommandLineArgument(generateDoc, "") 49 .information("Generates a Doxygen file from things like SetConsoleCommand"); 50 46 51 /** 47 52 @brief … … 52 57 QApplication app(argc, argv); 53 58 59 QStringList arguments = QCoreApplication::arguments(); 60 if (!arguments.value(0).isEmpty() && arguments.value(0)[0] != '-') 61 arguments.pop_front(); // Remove application path 62 Core core(arguments.join(" ").toStdString()); 63 54 64 QCoreApplication::setOrganizationName(""); 55 65 QCoreApplication::setOrganizationDomain(""); 56 66 QCoreApplication::setApplicationName(""); 57 67 58 //if (CommandLineParser::getValue("generateDoc").getString().empty())59 60 return app.exec();61 //return 0;68 if (CommandLineParser::getValue("generateDoc").toString().isEmpty()) 69 return app.exec(); 70 else 71 return 0; 62 72 } 63 73 }
Note: See TracChangeset
for help on using the changeset viewer.