Changeset 2726 for code/trunk/src
- Timestamp:
- Mar 1, 2009, 8:47:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/ConfigFileManager.cc
r2725 r2726 228 228 // Get default file if necessary and available 229 229 boost::filesystem::path filepath(Core::getConfigPath() / this->filename_); 230 COUT(0) << "config filepath: " << filepath.string() << std::endl; 230 231 if (!boost::filesystem::exists(filepath)) 231 232 { 232 233 // Try to get default one from the media folder 233 234 boost::filesystem::path defaultFilepath(Core::getMediaPath() / "defaultConfig" / this->filename_); 235 COUT(0) << "default filepath: " << defaultFilepath.string() << std::endl; 234 236 if (boost::filesystem::exists(defaultFilepath)) 235 237 { 236 238 COUT(3) << "Copied " << this->filename_ << " from the defaultConfig folder." << std::endl; 237 239 boost::filesystem::copy_file(defaultFilepath, filepath); 238 std::string testfilename = std::string("__") + this->filename_;239 boost::filesystem::copy_file(defaultFilepath, filepath.branch_path() / testfilename);240 240 } 241 241 }
Note: See TracChangeset
for help on using the changeset viewer.