[Orxonox-commit 11] r2726 - trunk/src/core

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Mar 1 20:47:43 CET 2009


Author: rgrieder
Date: 2009-03-01 20:47:42 +0100 (Sun, 01 Mar 2009)
New Revision: 2726

Modified:
   trunk/src/core/ConfigFileManager.cc
Log:
Still fixing a bug.

Modified: trunk/src/core/ConfigFileManager.cc
===================================================================
--- trunk/src/core/ConfigFileManager.cc	2009-03-01 19:14:50 UTC (rev 2725)
+++ trunk/src/core/ConfigFileManager.cc	2009-03-01 19:47:42 UTC (rev 2726)
@@ -227,16 +227,16 @@
 
         // Get default file if necessary and available
         boost::filesystem::path filepath(Core::getConfigPath() / this->filename_);
+        COUT(0) << "config filepath: " << filepath.string() << std::endl;
         if (!boost::filesystem::exists(filepath))
         {
             // Try to get default one from the media folder
             boost::filesystem::path defaultFilepath(Core::getMediaPath() / "defaultConfig" / this->filename_);
+            COUT(0) << "default filepath: " << defaultFilepath.string() << std::endl;
             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