Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 30, 2009, 12:00:16 AM (15 years ago)
Author:
rgrieder
Message:

Extracted path related parts of Core into a new PathConfig class. This should decrease the mess in Core.cc a little bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/Language.cc

    r5738 r5836  
    3939#include "util/Debug.h"
    4040#include "Core.h"
     41#include "PathConfig.h"
    4142
    4243namespace orxonox
     
    200201        COUT(4) << "Read default language file." << std::endl;
    201202
    202         boost::filesystem::path filepath(Core::getConfigPath() / getFilename(this->defaultLanguage_));
     203        boost::filesystem::path filepath(PathConfig::getConfigPath() / getFilename(this->defaultLanguage_));
    203204
    204205        // This creates the file if it's not existing
     
    249250        COUT(4) << "Read translated language file (" << Core::getLanguage() << ")." << std::endl;
    250251
    251         boost::filesystem::path filepath(Core::getConfigPath() / getFilename(Core::getLanguage()));
     252        boost::filesystem::path filepath(PathConfig::getConfigPath() / getFilename(Core::getLanguage()));
    252253
    253254        // Open the file
     
    303304        COUT(4) << "Language: Write default language file." << std::endl;
    304305
    305         boost::filesystem::path filepath(Core::getConfigPath() / getFilename(this->defaultLanguage_));
     306        boost::filesystem::path filepath(PathConfig::getConfigPath() / getFilename(this->defaultLanguage_));
    306307
    307308        // Open the file
Note: See TracChangeset for help on using the changeset viewer.