]> git.mxchange.org Git - flightgear.git/commitdiff
Move launcher settings store inside FG_HOME
authorJames Turner <zakalawe@mac.com>
Fri, 8 Apr 2016 09:40:26 +0000 (10:40 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 8 Apr 2016 09:40:26 +0000 (10:40 +0100)
Settings now in .ini format, at $FG_HOME/flightgear.org/FlightGear.ini

src/GUI/QtLauncher.cxx

index ae2a95c0a2bcf9c134d7f92d38f89750490d1006..59da6532bb0ae04ed61144b27858d9c6dcbd3b95 100644 (file)
@@ -347,6 +347,10 @@ void initApp(int& argc, char** argv)
         // and may crash if it is freed
         // 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);
         app->setOrganizationName("FlightGear");
         app->setApplicationName("FlightGear");