Changeset 7423 for sandbox_qt/src/orxonox/Main.cc
- Timestamp:
- Sep 12, 2010, 1:39:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox_qt/src/orxonox/Main.cc
r7421 r7423 36 36 #include "OrxonoxPrereqs.h" 37 37 38 #include <QApplication> 39 #include <QCoreApplication> 40 38 41 #include "core/Game.h" 39 42 #include "Main.h" … … 45 48 Starting point of orxonox (however not the entry point of the program!) 46 49 */ 47 int main( const std::string& strCmdLine)50 int main(int argc, char** argv) 48 51 { 49 Game* game = new Game(strCmdLine); 52 QApplication app(argc, argv); 53 54 QCoreApplication::setOrganizationName(""); 55 QCoreApplication::setOrganizationDomain(""); 56 QCoreApplication::setApplicationName(""); 50 57 51 58 //if (CommandLineParser::getValue("generateDoc").getString().empty()) 52 // game->run();53 59 54 delete game; 55 56 return 0; 60 return app.exec(); 61 //return 0; 57 62 } 58 63 }
Note: See TracChangeset
for help on using the changeset viewer.