Changeset 8830 for code/branches/output/src/libraries/core/Core.cc
- Timestamp:
- Aug 7, 2011, 10:51:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/Core.cc
r8806 r8830 112 112 , destructionHelper_(this) 113 113 { 114 orxout(internal_status) << "initializing Core object..." << endl; 115 114 116 // Set the hard coded fixed paths 115 117 this->pathConfig_ = new PathConfig(); … … 119 121 120 122 // Load modules 123 orxout(internal_info) << "Loading modules:" << endl; 121 124 const std::vector<std::string>& modulePaths = this->pathConfig_->getModulePaths(); 122 125 for (std::vector<std::string>::const_iterator it = modulePaths.begin(); it != modulePaths.end(); ++it) … … 138 141 this->pathConfig_->setConfigurablePaths(); 139 142 143 orxout(internal_info) << "Root path: " << PathConfig::getRootPathString() << endl; 144 orxout(internal_info) << "Executable path: " << PathConfig::getExecutablePathString() << endl; 145 orxout(internal_info) << "Data path: " << PathConfig::getDataPathString() << endl; 146 orxout(internal_info) << "Ext. data path: " << PathConfig::getExternalDataPathString() << endl; 147 orxout(internal_info) << "Config path: " << PathConfig::getConfigPathString() << endl; 148 orxout(internal_info) << "Log path: " << PathConfig::getLogPathString() << endl; 149 orxout(internal_info) << "Modules path: " << PathConfig::getModulePathString() << endl; 150 140 151 // create a signal handler (only active for Linux) 141 152 // This call is placed as soon as possible, but after the directories are set … … 153 164 154 165 // Manage ini files and set the default settings file (usually orxonox.ini) 166 orxout(internal_info) << "Loading config:" << endl; 155 167 this->configFileManager_ = new ConfigFileManager(); 156 168 this->configFileManager_->setFilename(ConfigFileType::Settings, … … 158 170 159 171 // Required as well for the config values 172 orxout(internal_info) << "Loading language:" << endl; 160 173 this->languageInstance_ = new Language(); 161 174 … … 163 176 // possibility to configure everything below here 164 177 RegisterRootObject(Core); 178 orxout(internal_info) << "configuring Core" << endl; 165 179 this->setConfigValues(); 166 180 … … 175 189 } 176 190 if (this->bStartIOConsole_) 191 { 192 orxout(internal_info) << "creating IO console" << endl; 177 193 this->ioConsole_ = new IOConsole(); 194 } 178 195 #endif 179 196 180 197 // creates the class hierarchy for all classes with factories 198 orxout(internal_info) << "creating class hierarchy" << endl; 181 199 Identifier::createClassHierarchy(); 182 200 183 201 // Load OGRE excluding the renderer and the render window 202 orxout(internal_info) << "creating GraphicsManager:" << endl; 184 203 this->graphicsManager_ = new GraphicsManager(false); 185 204 … … 189 208 190 209 // Create singletons that always exist (in other libraries) 210 orxout(internal_info) << "creating root scope:" << endl; 191 211 this->rootScope_ = new Scope<ScopeID::Root>(); 192 212 … … 205 225 orxout(internal_error) << "Could not open file for documentation writing" << endl; 206 226 } 227 228 orxout(internal_status) << "finished initializing Core object" << endl; 207 229 } 208 230 209 231 void Core::destroy() 210 232 { 233 orxout(internal_status) << "destroying Core object..." << endl; 234 211 235 // Remove us from the object lists again to avoid problems when destroying them 212 236 this->unregisterObject(); … … 227 251 safeObjectDelete(&dynLibManager_); 228 252 safeObjectDelete(&pathConfig_); 253 254 orxout(internal_status) << "finished destroying Core object" << endl; 229 255 } 230 256 … … 310 336 void Core::loadGraphics() 311 337 { 338 orxout(internal_info) << "loading graphics in Core" << endl; 339 312 340 // Any exception should trigger this, even in upgradeToGraphics (see its remarks) 313 341 Loki::ScopeGuard unloader = Loki::MakeObjGuard(*this, &Core::unloadGraphics); … … 351 379 352 380 // Create singletons associated with graphics (in other libraries) 381 orxout(internal_info) << "creating graphics scope:" << endl; 353 382 graphicsScope_ = new Scope<ScopeID::Graphics>(); 354 383 355 384 unloader.Dismiss(); 385 386 orxout(internal_info) << "finished loading graphics in Core" << endl; 356 387 } 357 388 358 389 void Core::unloadGraphics() 359 390 { 391 orxout(internal_info) << "unloading graphics in Core" << endl; 392 360 393 safeObjectDelete(&graphicsScope_); 361 394 safeObjectDelete(&guiManager_);
Note: See TracChangeset
for help on using the changeset viewer.