Changeset 2702 for code/branches/buildsystem3/src/orxonox
- Timestamp:
- Feb 27, 2009, 2:13:29 PM (16 years ago)
- Location:
- code/branches/buildsystem3/src/orxonox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/orxonox/Main.cc
r2690 r2702 92 92 using namespace orxonox; 93 93 94 // First, determine whether we have an installed or a binary dir run 95 // The latter occurs when simply running from the build directory 96 Core::checkDevBuild(); 97 98 // Make sure the directories we write in exist or else make them 99 Core::createDirectories(); 94 Core::postMainInitialisation(); 100 95 101 96 // create a signal handler (only active for linux) 102 97 SignalHandler signalHandler; 103 signalHandler.doCatch(argv[0], Core::getLogPath () + "orxonox_crash.log");98 signalHandler.doCatch(argv[0], Core::getLogPathString() + "orxonox_crash.log"); 104 99 105 100 // Parse command line arguments -
code/branches/buildsystem3/src/orxonox/gamestates/GSGraphics.cc
r2699 r2702 45 45 #include <OgreWindowEventUtilities.h> 46 46 47 #include "SpecialConfig.h" 47 48 #include "util/Debug.h" 48 49 #include "util/Exception.h" … … 135 136 // load debug overlay 136 137 COUT(3) << "Loading Debug Overlay..." << std::endl; 137 this->debugOverlay_ = new XMLFile( Core::getMediaPath() + "overlay/debug.oxo");138 this->debugOverlay_ = new XMLFile((Core::getMediaPath() / "overlay" / "debug.oxo").file_string()); 138 139 Loader::open(debugOverlay_); 139 140 … … 293 294 } 294 295 295 boost::filesystem::path ogreConfigFilepath(Core::getConfigPath()); 296 ogreConfigFilepath /= this->ogreConfigFile_; 297 boost::filesystem::path ogreLogFilepath(Core::getLogPath()); 298 ogreLogFilepath /= this->ogreLogFile_; 296 boost::filesystem::path ogreConfigFilepath(Core::getConfigPath() / this->ogreConfigFile_); 297 boost::filesystem::path ogreLogFilepath(Core::getLogPath() / this->ogreLogFile_); 299 298 300 299 // create a new logManager … … 357 356 try 358 357 { 359 cf.load( Core::getMediaPath() + resourceFile_);358 cf.load((Core::getMediaPath() / resourceFile_).file_string()); 360 359 } 361 360 catch (...) … … 383 382 384 383 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( 385 std::string(Core::getMediaPath() + archName), typeName, secName);384 (Core::getMediaPath() / archName).directory_string(), typeName, secName); 386 385 } 387 386 } -
code/branches/buildsystem3/src/orxonox/gamestates/GSLevel.cc
r2690 r2702 202 202 std::string levelName; 203 203 CommandLine::getValue("level", &levelName); 204 startFile_ = new XMLFile(Core::getMediaPath () + std::string("levels/")+ levelName);204 startFile_ = new XMLFile(Core::getMediaPathString() + "levels" + CP_SLASH + levelName); 205 205 Loader::open(startFile_); 206 206 } -
code/branches/buildsystem3/src/orxonox/gamestates/GSRoot.cc
r2693 r2702 111 111 112 112 // initialise TCL 113 this->tclBind_ = new TclBind(Core::getMediaPath ());113 this->tclBind_ = new TclBind(Core::getMediaPathPOSIXString()); 114 114 this->tclThreadManager_ = new TclThreadManager(tclBind_->getTclInterpreter()); 115 115 -
code/branches/buildsystem3/src/orxonox/gui/GUIManager.cc
r2687 r2702 42 42 #include <CEGUIDefaultLogger.h> 43 43 #include <ogreceguirenderer/OgreCEGUIRenderer.h> 44 #include "SpecialConfig.h" // Configures the macro below 44 45 #ifdef CEGUILUA_USE_INTERNAL_LIBRARY 45 46 # include <ceguilua/CEGUILua.h> … … 151 152 152 153 // Create our own logger to specify the filepath 153 boost::filesystem::path ceguiLogFilepath(Core::getLogPath() +"cegui.log");154 boost::filesystem::path ceguiLogFilepath(Core::getLogPath() / "cegui.log"); 154 155 this->ceguiLogger_ = new DefaultLogger(); 155 156 this->ceguiLogger_->setLogFilename(ceguiLogFilepath.file_string()); -
code/branches/buildsystem3/src/orxonox/objects/Level.cc
r2685 r2702 55 55 this->xmlfilename_ = this->getFilename(); 56 56 57 if (this->xmlfilename_.length() >= Core::getMediaPath ().length())58 this->xmlfilename_ = this->xmlfilename_.substr(Core::getMediaPath ().length());57 if (this->xmlfilename_.length() >= Core::getMediaPathString().length()) 58 this->xmlfilename_ = this->xmlfilename_.substr(Core::getMediaPathString().length()); 59 59 } 60 60 … … 97 97 mask.include(Class(OverlayGroup)); // HACK to include the ChatOverlay 98 98 99 this->xmlfile_ = new XMLFile(Core::getMediaPath () + this->xmlfilename_, mask);99 this->xmlfile_ = new XMLFile(Core::getMediaPathString() + this->xmlfilename_, mask); 100 100 101 101 Loader::open(this->xmlfile_);
Note: See TracChangeset
for help on using the changeset viewer.