From: mfranz Date: Thu, 3 Aug 2006 09:37:31 +0000 (+0000) Subject: remove confusing error message that leads first-time users on the wrong X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6ce68a226a39af7d10464f5d05708e55660d940d;p=flightgear.git remove confusing error message that leads first-time users on the wrong 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) --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 874288901..ab29bed5e 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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