From 93dff176499df81f421c492c8c48d6760cbf14be Mon Sep 17 00:00:00 2001
From: Thomas Geymayer <tomgey@gmail.com>
Date: Mon, 9 Dec 2013 23:16:25 +0100
Subject: [PATCH] Set "/sim/fghome-readonly" to false also for Windows.

"/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 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx
index 248b62acd..dc56fb0af 100644
--- a/src/Main/fg_init.cxx
+++ b/src/Main/fg_init.cxx
@@ -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.",