1
0
Fork 0

Move launcher settings store inside FG_HOME

Settings now in .ini format, at $FG_HOME/flightgear.org/FlightGear.ini
This commit is contained in:
James Turner 2016-04-08 10:40:26 +01:00
parent 5341d327fd
commit 5e4063b761

View file

@ -347,6 +347,10 @@ void initApp(int& argc, char** argv)
// and may crash if it is freed // and may crash if it is freed
// http://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication // http://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication
QSettings::setDefaultFormat(QSettings::IniFormat);
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope,
QString::fromStdString(globals->get_fg_home()));
QApplication* app = new QApplication(s_argc, argv); QApplication* app = new QApplication(s_argc, argv);
app->setOrganizationName("FlightGear"); app->setOrganizationName("FlightGear");
app->setApplicationName("FlightGear"); app->setApplicationName("FlightGear");