Changeset 2697 for code/branches/buildsystem3/src/orxonox
- Timestamp:
- Feb 23, 2009, 11:35:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/orxonox/gamestates/GSGraphics.cc
r2690 r2697 293 293 } 294 294 295 boost::filesystem::path ogreConfigFilepath(Core::getConfigPath() + ogreConfigFile_); 296 boost::filesystem::path ogreLogFilepath(Core::getLogPath() + ogreLogFile_); 295 boost::filesystem::path ogreConfigFilepath(Core::getConfigPath()); 296 ogreConfigFilepath /= this->ogreConfigFile_; 297 boost::filesystem::path ogreLogFilepath(Core::getLogPath()); 298 ogreLogFilepath /= this->ogreLogFile_; 297 299 298 300 // create a new logManager … … 312 314 313 315 // check for config file existence because Ogre displays (caught) exceptions if not 314 std::ifstream probe; 315 probe.open(ogreConfigFilepath.file_string().c_str()); 316 if (!probe) 316 if (!boost::filesystem::exits(ogreConfigFilepath)) 317 317 { 318 318 // create a zero sized file … … 321 321 creator.close(); 322 322 } 323 else324 probe.close();325 323 326 324 // Leave plugins file empty. We're going to do that part manually later
Note: See TracChangeset
for help on using the changeset viewer.