Changeset 2702 for code/branches/buildsystem3/src/core/ConfigFileManager.cc
- Timestamp:
- Feb 27, 2009, 2:13:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/core/ConfigFileManager.cc
r2690 r2702 227 227 228 228 // Get default file if necessary and available 229 boost::filesystem::path filepath(Core::getConfigPath()); 230 filepath /= this->filename_; 229 boost::filesystem::path filepath(Core::getConfigPath() / this->filename_); 231 230 if (!boost::filesystem::exists(filepath)) 232 231 { 233 232 // Try to get default one from the media folder 234 boost::filesystem::path defaultFilepath(Core::getMediaPath()); 235 defaultFilepath = defaultFilepath / "defaultConfig" / this->filename_; 233 boost::filesystem::path defaultFilepath(Core::getMediaPath() / "defaultConfig" / this->filename_); 236 234 if (boost::filesystem::exists(defaultFilepath)) 237 235 { … … 345 343 void ConfigFile::save() const 346 344 { 347 boost::filesystem::path filepath(Core::getConfigPath()); 348 filepath /= this->filename_; 345 boost::filesystem::path filepath(Core::getConfigPath() / this->filename_); 349 346 350 347 std::ofstream file;
Note: See TracChangeset
for help on using the changeset viewer.