- Timestamp:
- Mar 5, 2009, 2:58:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/gamestates/GSGraphics.cc
r2710 r2750 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 }
Note: See TracChangeset
for help on using the changeset viewer.