Changeset 5654 for code/branches/resource2/src/core/Core.cc
- Timestamp:
- Aug 17, 2009, 4:37:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/src/core/Core.cc
r5645 r5654 74 74 #include "Identifier.h" 75 75 #include "Language.h" 76 #include "Lua Bind.h"76 #include "LuaState.h" 77 77 #include "Shell.h" 78 78 #include "TclBind.h" 79 79 #include "TclThreadManager.h" 80 #include "ToluaBindCore.h" 80 81 #include "input/InputManager.h" 81 82 … … 266 267 setThreadAffinity(static_cast<unsigned int>(limitToCPU)); 267 268 #endif 269 // Add tolua interface 270 LuaState::addToluaInterface(&tolua_Core_open, "Core"); 268 271 269 272 // Manage ini files and set the default settings file (usually orxonox.ini) … … 275 278 this->languageInstance_.reset(new Language()); 276 279 280 // creates the class hierarchy for all classes with factories 281 Factory::createClassHierarchy(); 282 277 283 // Do this soon after the ConfigFileManager has been created to open up the 278 284 // possibility to configure everything below here 279 285 this->configuration_->initialise(); 280 286 281 // Create the lua interface282 this-> luaBind_.reset(new LuaBind());287 // Load OGRE excluding the renderer and the render window 288 this->graphicsManager_.reset(new GraphicsManager(false)); 283 289 284 290 // initialise Tcl … … 288 294 // create a shell 289 295 this->shell_.reset(new Shell()); 290 291 // creates the class hierarchy for all classes with factories292 Factory::createClassHierarchy();293 294 // Load OGRE excluding the renderer and the render window295 this->graphicsManager_.reset(new GraphicsManager(false));296 296 } 297 297 298 298 /** 299 299 @brief 300 All destruction code is handled by scoped_ptrs and S impleScopeGuards.300 All destruction code is handled by scoped_ptrs and ScopeGuards. 301 301 */ 302 302 Core::~Core() … … 561 561 COUT(1) << "Running from the build tree." << std::endl; 562 562 Core::bDevRun_ = true; 563 configuration_->dataPath_ = specialConfig::dataDevDirectory;563 configuration_->dataPath_ = specialConfig::dataDevDirectory; 564 564 configuration_->externalDataPath_ = specialConfig::externalDataDevDirectory; 565 565 configuration_->configPath_ = specialConfig::configDevDirectory; … … 579 579 580 580 // Using paths relative to the install prefix, complete them 581 configuration_->dataPath_ = configuration_->rootPath_ / specialConfig::defaultDataPath;581 configuration_->dataPath_ = configuration_->rootPath_ / specialConfig::defaultDataPath; 582 582 configuration_->configPath_ = configuration_->rootPath_ / specialConfig::defaultConfigPath; 583 583 configuration_->logPath_ = configuration_->rootPath_ / specialConfig::defaultLogPath;
Note: See TracChangeset
for help on using the changeset viewer.