1
0
Fork 0

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)
This commit is contained in:
mfranz 2006-08-03 09:37:31 +00:00
parent 010e03fab4
commit 6ce68a226a

View 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