home->setStringValue(dataPath.c_str());
home->setAttribute(SGPropertyNode::WRITE, false);
+ fgSetDefaults();
flightgear::Options* options = flightgear::Options::sharedInstance();
options->init(argc, argv, dataPath);
bool loadDefaults = flightgear::Options::sharedInstance()->shouldLoadDefaultConfig();
* in case, we provide some initial sane values here. This method
* should be invoked *before* reading any init files.
*/
-static void
-fgSetDefaults ()
+void fgSetDefaults ()
{
// Position (deliberately out of range)
void Options::init(int argc, char **argv, const SGPath& appDataPath)
{
- fgSetDefaults();
-
// first, process the command line
bool inOptions = true;
for (int i=1; i<argc; ++i) {