Changeset 911 for code/branches/script/src/orxonox/GraphicsEngine.cc
- Timestamp:
- Mar 20, 2008, 3:56:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/script/src/orxonox/GraphicsEngine.cc
r790 r911 36 36 #include <OgreTextureManager.h> 37 37 38 #include "core/CoreIncludes.h" 38 39 #include "core/Debug.h" 39 40 #include "GraphicsEngine.h" … … 46 47 GraphicsEngine::GraphicsEngine() 47 48 { 49 RegisterObject(GraphicsEngine); 50 this->bOverwritePath_ = false; 51 this->setConfigValues(); 48 52 // set to standard values 49 53 this->configPath_ = ""; 50 this->dataPath_ = "";51 54 scene_ = NULL; 52 55 } … … 55 58 GraphicsEngine::~GraphicsEngine() 56 59 { 60 } 61 62 void GraphicsEngine::setConfigValues() 63 { 64 SetConfigValue(dataPath_, dataPath_).description("relative path to media data"); 65 //if(this->bOverwritePath_) 66 ResetConfigValue(dataPath_); 67 57 68 } 58 69 … … 87 98 } 88 99 89 bool GraphicsEngine::load( )100 bool GraphicsEngine::load(std::string dataPath) 90 101 { 102 if( dataPath != "" ) { 103 dataPath_ = dataPath; 104 bOverwritePath_ = true; 105 setConfigValues(); 106 } 91 107 loadRessourceLocations(this->dataPath_); 92 108 if (!root_->restoreConfig() && !root_->showConfigDialog()) … … 108 124 // Load resource paths from data file using configfile ressource type 109 125 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;*/ 110 131 cf.load(dataPath + "resources.cfg"); 111 132
Note: See TracChangeset
for help on using the changeset viewer.