- Timestamp:
- May 30, 2015, 12:22:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/GraphicsManager.cc
r10508 r10509 59 59 #include "GUIManager.h" 60 60 #include "Loader.h" 61 #include "PathConfig.h" 61 #include "ApplicationPaths.h" 62 #include "ConfigurablePaths.h" 62 63 #include "ViewportEventListener.h" 63 64 #include "WindowEventListener.h" … … 113 114 114 115 // At first, add the root paths of the data directories as resource locations 115 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( PathConfig::getDataPathString(), "FileSystem");116 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getDataPathString(), "FileSystem"); 116 117 // Load resources 117 118 resources_.reset(new XMLFile("DefaultResources.oxr")); … … 120 121 121 122 // Only for runs in the build directory (not installed) 122 if ( PathConfig::buildDirectoryRun())123 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( PathConfig::getExternalDataPathString(), "FileSystem");123 if (ApplicationPaths::buildDirectoryRun()) 124 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getExternalDataPathString(), "FileSystem"); 124 125 125 126 extResources_.reset(new XMLFile("resources.oxr")); … … 220 221 } 221 222 222 boost::filesystem::path ogreConfigFilepath( PathConfig::getConfigPath() / this->ogreConfigFile_);223 boost::filesystem::path ogreLogFilepath( PathConfig::getLogPath() / this->ogreLogFile_);223 boost::filesystem::path ogreConfigFilepath(ConfigurablePaths::getConfigPath() / this->ogreConfigFile_); 224 boost::filesystem::path ogreLogFilepath(ConfigurablePaths::getLogPath() / this->ogreLogFile_); 224 225 225 226 // create a new logManager … … 260 261 std::string pluginPath = specialConfig::ogrePluginsDirectory; 261 262 #ifdef DEPENDENCY_PACKAGE_ENABLE 262 if (! PathConfig::buildDirectoryRun())263 if (!ApplicationPaths::buildDirectoryRun()) 263 264 { 264 265 # if defined(ORXONOX_PLATFORM_WINDOWS) 265 pluginPath = PathConfig::getExecutablePathString();266 pluginPath = ApplicationPaths::getExecutablePathString(); 266 267 # elif defined(ORXONOX_PLATFORM_APPLE) 267 268 // TODO: Where are the plugins being installed to? 268 pluginPath = PathConfig::getExecutablePathString();269 pluginPath = ApplicationPaths::getExecutablePathString(); 269 270 # endif 270 271 } … … 559 560 { 560 561 assert(this->renderWindow_); 561 this->renderWindow_->writeContentsToTimestampedFile( PathConfig::getLogPathString() + "screenShot_", ".png");562 this->renderWindow_->writeContentsToTimestampedFile(ConfigurablePaths::getLogPathString() + "screenShot_", ".png"); 562 563 } 563 564 }
Note: See TracChangeset
for help on using the changeset viewer.