Changeset 3370 for code/trunk/src/orxonox/Main.cc
- Timestamp:
- Jul 30, 2009, 2:10:44 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource (added) merged: 3328,3336-3340,3342-3350,3352-3366
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/Main.cc
r3323 r3370 46 46 #include "util/Debug.h" 47 47 #include "util/Exception.h" 48 #include "core/CommandLine.h" 48 49 #include "core/Game.h" 50 51 SetCommandLineSwitch(console).information("Start in console mode (text IO only)"); 52 // Shortcuts for easy direct loading 53 SetCommandLineSwitch(server).information("Start in server mode"); 54 SetCommandLineSwitch(client).information("Start in client mode"); 55 SetCommandLineSwitch(dedicated).information("Start in dedicated server mode"); 56 SetCommandLineSwitch(standalone).information("Start in standalone mode"); 49 57 50 58 /* … … 86 94 87 95 game->requestState("root"); 96 97 // Some development hacks (not really, but in the future, this calls won't make sense anymore) 98 if (CommandLine::getValue("standalone").getBool()) 99 Game::getInstance().requestStates("graphics, standalone, level"); 100 else if (CommandLine::getValue("server").getBool()) 101 Game::getInstance().requestStates("graphics, server, level"); 102 else if (CommandLine::getValue("client").getBool()) 103 Game::getInstance().requestStates("graphics, client, level"); 104 else if (CommandLine::getValue("dedicated").getBool()) 105 Game::getInstance().requestStates("dedicated, level"); 106 else if (CommandLine::getValue("console").getBool()) 107 Game::getInstance().requestStates("ioConsole"); 108 else 109 Game::getInstance().requestStates("graphics, mainMenu"); 88 110 } 89 111 catch (const std::exception& ex)
Note: See TracChangeset
for help on using the changeset viewer.