Changeset 9224 for code/branches/testing/src/orxonox/Main.cc
- Timestamp:
- May 19, 2012, 3:03:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/orxonox/Main.cc
r8858 r9224 68 68 orxout(user_status) << "Finished initialization" << endl; 69 69 70 if (CommandLineParser::getValue("generateDoc").get String().empty())70 if (CommandLineParser::getValue("generateDoc").get<std::string>().empty()) 71 71 { 72 72 orxout(internal_info) << "preparing game states" << endl; … … 86 86 87 87 // Some development hacks (not really, but in the future, these calls won't make sense anymore) 88 if (CommandLineParser::getValue("standalone").get Bool())88 if (CommandLineParser::getValue("standalone").get<bool>()) 89 89 Game::getInstance().requestStates("graphics, standalone, level"); 90 else if (CommandLineParser::getValue("server").get Bool())90 else if (CommandLineParser::getValue("server").get<bool>()) 91 91 Game::getInstance().requestStates("graphics, server, level"); 92 else if (CommandLineParser::getValue("client").get Bool())92 else if (CommandLineParser::getValue("client").get<bool>()) 93 93 Game::getInstance().requestStates("graphics, client, level"); 94 else if (CommandLineParser::getValue("dedicated").get Bool())94 else if (CommandLineParser::getValue("dedicated").get<bool>()) 95 95 Game::getInstance().requestStates("server, level"); 96 else if (CommandLineParser::getValue("dedicatedClient").get Bool())96 else if (CommandLineParser::getValue("dedicatedClient").get<bool>()) 97 97 Game::getInstance().requestStates("client, level"); 98 98 /* ADD masterserver command */ 99 else if (CommandLineParser::getValue("masterserver").get Bool())99 else if (CommandLineParser::getValue("masterserver").get<bool>()) 100 100 Game::getInstance().requestStates("masterserver"); 101 101 else 102 102 { 103 if (!CommandLineParser::getValue("console").get Bool())103 if (!CommandLineParser::getValue("console").get<bool>()) 104 104 Game::getInstance().requestStates("graphics, mainMenu"); 105 105 }
Note: See TracChangeset
for help on using the changeset viewer.