1
0
Fork 0

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.
This commit is contained in:
Thomas Geymayer 2013-12-09 23:16:25 +01:00
parent 13d94f240c
commit 93dff17649

View 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.",