Changeset 2807 for code/branches/gui/src/core/Core.cc
- Timestamp:
- Mar 19, 2009, 6:11:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Core.cc
r2800 r2807 94 94 SetCommandLineArgument(limitToCPU, 0).information("0: off | #cpu"); 95 95 96 /** 97 @brief Constructor: Registers the object and sets the config-values. 98 @param A reference to a global variable, used to avoid an infinite recursion in getSoftDebugLevel() 99 */ 100 Core::Core(int argc, char** argv) 96 Core::Core() 101 97 { 102 98 RegisterRootObject(Core); … … 104 100 assert(Core::singletonRef_s == 0); 105 101 Core::singletonRef_s = this; 102 } 103 104 Clock* Core::initialise(int argc, char** argv) 105 { 106 // Set up a basic clock to keep time 107 this->gameClock_ = new Clock(); 106 108 107 109 // Parse command line arguments fist … … 173 175 174 176 this->loaded_ = true; 177 178 // Return non const pointer to the game's clock for the main loop 179 return this->gameClock_; 175 180 } 176 181 … … 194 199 // Also delete external console command that don't belong to an Identifier 195 200 CommandExecutor::destroyExternalCommands(); 201 202 delete this->gameClock_; 196 203 197 204 assert(Core::singletonRef_s);
Note: See TracChangeset
for help on using the changeset viewer.