Changeset 2697
- Timestamp:
- Feb 23, 2009, 11:35:25 PM (16 years ago)
- Location:
- code/branches/buildsystem3
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/CMakeLists.txt
r2695 r2697 55 55 56 56 ADD_SUBDIRECTORY(config) 57 ADD_SUBDIRECTORY(log)57 SET(ORXONOX_LOG_DEV_PATH ${CMAKE_CURRENT_BINARY_DIR}) 58 58 59 59 # Creates the actual project -
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.