Changeset 2759 for code/trunk/src/orxonox
- Timestamp:
- Mar 8, 2009, 4:51:27 PM (16 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSGraphics.cc
r2710 r2759 136 136 // load debug overlay 137 137 COUT(3) << "Loading Debug Overlay..." << std::endl; 138 this->debugOverlay_ = new XMLFile((Core::getMediaPath() / "overlay" / "debug.oxo"). file_string());138 this->debugOverlay_ = new XMLFile((Core::getMediaPath() / "overlay" / "debug.oxo").string()); 139 139 Loader::open(debugOverlay_); 140 140 … … 304 304 // create our own log that we can listen to 305 305 Ogre::Log *myLog; 306 myLog = ogreLogger_->createLog(ogreLogFilepath. file_string(), true, false, false);306 myLog = ogreLogger_->createLog(ogreLogFilepath.string(), true, false, false); 307 307 COUT(4) << "Ogre Log created" << std::endl; 308 308 … … 317 317 // create a zero sized file 318 318 std::ofstream creator; 319 creator.open(ogreConfigFilepath. file_string().c_str());319 creator.open(ogreConfigFilepath.string().c_str()); 320 320 creator.close(); 321 321 } 322 322 323 323 // Leave plugins file empty. We're going to do that part manually later 324 ogreRoot_ = new Ogre::Root("", ogreConfigFilepath. file_string(), ogreLogFilepath.file_string());324 ogreRoot_ = new Ogre::Root("", ogreConfigFilepath.string(), ogreLogFilepath.string()); 325 325 326 326 COUT(3) << "Ogre set up done." << std::endl; … … 336 336 // Do some SubString magic to get the comma separated list of plugins 337 337 SubString plugins(ogrePlugins_, ",", " ", false, 92, false, 34, false, 40, 41, false, '\0'); 338 // Use backslash paths on Windows! file_string() already does that though. 338 339 for (unsigned int i = 0; i < plugins.size(); ++i) 339 340 ogreRoot_->loadPlugin((folder / plugins[i]).file_string()); … … 356 357 try 357 358 { 358 cf.load((Core::getMediaPath() / resourceFile_). file_string());359 cf.load((Core::getMediaPath() / resourceFile_).string()); 359 360 } 360 361 catch (...) … … 382 383 383 384 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( 384 (Core::getMediaPath() / archName). directory_string(), typeName, secName);385 (Core::getMediaPath() / archName).string(), typeName, secName); 385 386 } 386 387 } -
code/trunk/src/orxonox/gamestates/GSLevel.cc
r2710 r2759 202 202 std::string levelName; 203 203 CommandLine::getValue("level", &levelName); 204 startFile_ = new XMLFile(Core::getMediaPathString() + "levels" + CP_SLASH+ levelName);204 startFile_ = new XMLFile(Core::getMediaPathString() + "levels" + '/' + levelName); 205 205 Loader::open(startFile_); 206 206 } -
code/trunk/src/orxonox/gamestates/GSRoot.cc
r2756 r2759 104 104 105 105 // initialise TCL 106 this->tclBind_ = new TclBind(Core::getMediaPath POSIXString());106 this->tclBind_ = new TclBind(Core::getMediaPathString()); 107 107 this->tclThreadManager_ = new TclThreadManager(tclBind_->getTclInterpreter()); 108 108 -
code/trunk/src/orxonox/gui/GUIManager.cc
r2710 r2759 154 154 boost::filesystem::path ceguiLogFilepath(Core::getLogPath() / "cegui.log"); 155 155 this->ceguiLogger_ = new DefaultLogger(); 156 this->ceguiLogger_->setLogFilename(ceguiLogFilepath. file_string());156 this->ceguiLogger_->setLogFilename(ceguiLogFilepath.string()); 157 157 // set the log level according to ours (translate by subtracting 1) 158 158 this->ceguiLogger_->setLoggingLevel( -
code/trunk/src/orxonox/objects/worldentities/ExplosionChunk.cc
r2662 r2759 47 47 RegisterObject(ExplosionChunk); 48 48 49 if ( !this->getScene() || !Core::showsGraphics() || !this->getScene()->getSceneManager())49 if ( Core::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) ) 50 50 ThrowException(AbortLoading, "Can't create ExplosionChunk, no scene or no scene manager given."); 51 51 … … 53 53 this->LOD_ = LODParticle::normal; 54 54 55 try55 if ( Core::showsGraphics() ) 56 56 { 57 this->fire_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/fire4", this->LOD_); 58 this->attachOgreObject(this->fire_->getParticleSystem()); 59 this->smoke_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/smoke7", this->LOD_); 60 this->attachOgreObject(this->smoke_->getParticleSystem()); 57 try 58 { 59 this->fire_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/fire4", this->LOD_); 60 this->attachOgreObject(this->fire_->getParticleSystem()); 61 this->smoke_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/smoke7", this->LOD_); 62 this->attachOgreObject(this->smoke_->getParticleSystem()); 63 } 64 catch (...) 65 { 66 COUT(1) << "Error: Couln't load particle effect in ExplosionChunk." << std::endl; 67 this->fire_ = 0; 68 this->smoke_ = 0; 69 } 61 70 } 62 catch (...)71 else 63 72 { 64 COUT(1) << "Error: Couln't load particle effect in ExplosionChunk." << std::endl;65 73 this->fire_ = 0; 66 74 this->smoke_ = 0;
Note: See TracChangeset
for help on using the changeset viewer.