]> git.mxchange.org Git - flightgear.git/commitdiff
remove confusing error message that leads first-time users on the wrong
authormfranz <mfranz>
Thu, 3 Aug 2006 09:37:31 +0000 (09:37 +0000)
committermfranz <mfranz>
Thu, 3 Aug 2006 09:37:31 +0000 (09:37 +0000)
track and is a PITA for support staff. It's this message:

Error reading properties:
Failed to open file
 at /home/newbie/.fgfs/autosave.xml
 (reported by SimGear XML Parser)

src/Main/fg_init.cxx

index 8742889016644bdc466bb100726c7d8aafae0f5c..ab29bed5ed3c1d2c01e9c717c1feda0efe3a77d9 100644 (file)
@@ -606,12 +606,11 @@ bool fgInitConfig ( int argc, char **argv ) {
         config.append( "autosave.xml" );
         SG_LOG(SG_INPUT, SG_INFO, "Reading user settings from autosave.xml");
         try {
-            fgLoadProps(config.str().c_str(), globals->get_props(), false,
-                        SGPropertyNode::USERARCHIVE);
+            readProperties(config.str(), globals->get_props(), SGPropertyNode::USERARCHIVE);
         } catch (...) {
-            SG_LOG(SG_INPUT, SG_BULK, "First time reading user settings");
+            SG_LOG(SG_INPUT, SG_DEBUG, "First time reading user settings");
         }
-        SG_LOG(SG_INPUT, SG_BULK, "Finished Reading user settings");
+        SG_LOG(SG_INPUT, SG_DEBUG, "Finished Reading user settings");
     }
 
     // parse options after loading aircraft to ensure any user