Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2697


Ignore:
Timestamp:
Feb 23, 2009, 11:35:25 PM (15 years ago)
Author:
rgrieder
Message:
  • Removed log folder again (not necessary at all)
  • Making more use of boost::filesystem in GSGraphics
Location:
code/branches/buildsystem3
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/CMakeLists.txt

    r2695 r2697  
    5555
    5656ADD_SUBDIRECTORY(config)
    57 ADD_SUBDIRECTORY(log)
     57SET(ORXONOX_LOG_DEV_PATH ${CMAKE_CURRENT_BINARY_DIR})
    5858
    5959# Creates the actual project
  • code/branches/buildsystem3/src/orxonox/gamestates/GSGraphics.cc

    r2690 r2697  
    293293        }
    294294
    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_;
    297299
    298300        // create a new logManager
     
    312314
    313315        // 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))
    317317        {
    318318            // create a zero sized file
     
    321321            creator.close();
    322322        }
    323         else
    324             probe.close();
    325323
    326324        // Leave plugins file empty. We're going to do that part manually later
Note: See TracChangeset for help on using the changeset viewer.