- Timestamp:
- Mar 25, 2008, 11:05:52 PM (17 years ago)
- Location:
- code/branches/script/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/script/src/orxonox/GraphicsEngine.cc
r911 r924 48 48 { 49 49 RegisterObject(GraphicsEngine); 50 this->bOverwritePath_ = false;50 //this->bOverwritePath_ = false; 51 51 this->setConfigValues(); 52 52 // set to standard values … … 63 63 { 64 64 SetConfigValue(dataPath_, dataPath_).description("relative path to media data"); 65 //if(this->bOverwritePath_)66 ResetConfigValue(dataPath_);67 65 68 66 } … … 100 98 bool GraphicsEngine::load(std::string dataPath) 101 99 { 102 if( dataPath != "" ) { 100 // temporary overwrite of dataPath, change ini file for permanent change 101 if( dataPath != "" ) 103 102 dataPath_ = dataPath; 104 bOverwritePath_ = true;105 setConfigValues();106 }107 103 loadRessourceLocations(this->dataPath_); 108 104 if (!root_->restoreConfig() && !root_->showConfigDialog()) … … 115 111 root_->initialise(true, "OrxonoxV2"); 116 112 TextureManager::getSingleton().setDefaultNumMipmaps(5); 113 //TODO: Do NOT load all the groups, why are we doing that? And do we really do that? initialise != load... 117 114 ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); 118 115 } … … 124 121 // Load resource paths from data file using configfile ressource type 125 122 ConfigFile cf; 126 /*dataPath = "/home/piranha/orxonox/trunk/";127 //dataPath += "resources.cfg";128 std::cout << "*******************" << std::endl;129 std::cout << dataPath << std::endl;130 std::cout << "*******************" << std::endl;*/131 123 cf.load(dataPath + "resources.cfg"); 132 124 -
code/branches/script/src/orxonox/GraphicsEngine.h
r911 r924 42 42 std::string dataPath_; //!< path to data file 43 43 Ogre::SceneManager* scene_; //!< scene manager of the game 44 bool bOverwritePath_; //!< overwrites path44 //bool bOverwritePath_; //!< overwrites path 45 45 46 46 };
Note: See TracChangeset
for help on using the changeset viewer.