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:
parent
010e03fab4
commit
6ce68a226a
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue