Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2015, 12:22:27 PM (9 years ago)
Author:
landauf
Message:

moved static application paths (root, executable, modules) into new class named ApplicationPaths
moved configurable data paths (data, log, config) into new class named ConfigurablePaths
removed PathConfig

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/GraphicsManager.cc

    r10508 r10509  
    5959#include "GUIManager.h"
    6060#include "Loader.h"
    61 #include "PathConfig.h"
     61#include "ApplicationPaths.h"
     62#include "ConfigurablePaths.h"
    6263#include "ViewportEventListener.h"
    6364#include "WindowEventListener.h"
     
    113114
    114115        // 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");
    116117        // Load resources
    117118        resources_.reset(new XMLFile("DefaultResources.oxr"));
     
    120121
    121122        // 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");
    124125
    125126        extResources_.reset(new XMLFile("resources.oxr"));
     
    220221        }
    221222
    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_);
    224225
    225226        // create a new logManager
     
    260261        std::string pluginPath = specialConfig::ogrePluginsDirectory;
    261262#ifdef DEPENDENCY_PACKAGE_ENABLE
    262         if (!PathConfig::buildDirectoryRun())
     263        if (!ApplicationPaths::buildDirectoryRun())
    263264        {
    264265#  if defined(ORXONOX_PLATFORM_WINDOWS)
    265             pluginPath = PathConfig::getExecutablePathString();
     266            pluginPath = ApplicationPaths::getExecutablePathString();
    266267#  elif defined(ORXONOX_PLATFORM_APPLE)
    267268            // TODO: Where are the plugins being installed to?
    268             pluginPath = PathConfig::getExecutablePathString();
     269            pluginPath = ApplicationPaths::getExecutablePathString();
    269270#  endif
    270271        }
     
    559560    {
    560561        assert(this->renderWindow_);
    561         this->renderWindow_->writeContentsToTimestampedFile(PathConfig::getLogPathString() + "screenShot_", ".png");
     562        this->renderWindow_->writeContentsToTimestampedFile(ConfigurablePaths::getLogPathString() + "screenShot_", ".png");
    562563    }
    563564}
Note: See TracChangeset for help on using the changeset viewer.