[Orxonox-commit 10] r2725 - trunk/src/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Sun Mar 1 20:14:50 CET 2009
Author: rgrieder
Date: 2009-03-01 20:14:50 +0100 (Sun, 01 Mar 2009)
New Revision: 2725
Modified:
trunk/src/core/ConfigFileManager.cc
Log:
Trying to fix a bug.
Modified: trunk/src/core/ConfigFileManager.cc
===================================================================
--- trunk/src/core/ConfigFileManager.cc 2009-03-01 17:32:58 UTC (rev 2724)
+++ trunk/src/core/ConfigFileManager.cc 2009-03-01 19:14:50 UTC (rev 2725)
@@ -233,7 +233,10 @@
boost::filesystem::path defaultFilepath(Core::getMediaPath() / "defaultConfig" / this->filename_);
if (boost::filesystem::exists(defaultFilepath))
{
+ COUT(3) << "Copied " << this->filename_ << " from the defaultConfig folder." << std::endl;
boost::filesystem::copy_file(defaultFilepath, filepath);
+ std::string testfilename = std::string("__") + this->filename_;
+ boost::filesystem::copy_file(defaultFilepath, filepath.branch_path() / testfilename);
}
}
More information about the Orxonox-commit
mailing list