]> git.mxchange.org Git - flightgear.git/commitdiff
Set "/sim/fghome-readonly" to false also for Windows.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 9 Dec 2013 22:16:25 +0000 (23:16 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 9 Dec 2013 22:16:25 +0000 (23:16 +0100)
"/sim/fghome-readonly" is read with a default of false always,
but I think the code should set it explicitly to false for all
platforms.

src/Main/fg_init.cxx

index 248b62acd503bcfe25fe1dc310c8aad11289a0b9..dc56fb0af50d09d2b354c2980ce3745d22a9e1be 100644 (file)
@@ -417,9 +417,10 @@ bool fgInitHome()
         if( ::unlink(pidPath.c_str()) != 0 ) // delete file when app quits
           result = false;
     }
-    
-    fgSetBool("/sim/fghome-readonly", false);
 #endif
+
+    fgSetBool("/sim/fghome-readonly", false);
+
     if (!result) {
         flightgear::fatalMessageBox("File permissions problem",
                                     "Can't write to user-data storage folder, check file permissions and FG_HOME.",