Changeset 1891 for code/trunk/src/orxonox/Main.cc
- Timestamp:
- Oct 6, 2008, 7:39:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Main.cc
r1755 r1891 39 39 40 40 #include "util/OrxonoxPlatform.h" 41 #include "util/Debug.h" 42 #include "core/ConfigFileManager.h" 41 43 #include "SignalHandler.h" 42 #include "util/Debug.h"43 44 44 45 #include "gamestates/GSRoot.h" … … 90 91 SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log"); 91 92 93 // Specifiy config file before creating the GameStates in order to have 94 // setConfigValues() in the constructor (required). 95 #if ORXONOX_DEBUG_MODE == 1 96 ConfigFileManager::getInstance().setFile(CFT_Settings, "orxonox_d.ini"); 97 #else 98 ConfigFileManager::getInstance().setFile(CFT_Settings, "orxonox.ini"); 99 #endif 100 101 // create the gamestates 92 102 GSRoot root; 93 103 GSGraphics graphics; … … 99 109 GSIOConsole ioConsole; 100 110 111 // make the hierarchy 101 112 root.addChild(&graphics); 102 113 graphics.addChild(&standalone); … … 104 115 graphics.addChild(&client); 105 116 graphics.addChild(&gui); 106 107 117 root.addChild(&ioConsole); 108 118 root.addChild(&dedicated); 109 119 120 // Here happens the game 110 121 root.start(argc, argv); 111 122
Note: See TracChangeset
for help on using the changeset viewer.