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:
parent
13d94f240c
commit
93dff17649
1 changed files with 3 additions and 2 deletions
|
@ -417,9 +417,10 @@ bool fgInitHome()
|
||||||
if( ::unlink(pidPath.c_str()) != 0 ) // delete file when app quits
|
if( ::unlink(pidPath.c_str()) != 0 ) // delete file when app quits
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
fgSetBool("/sim/fghome-readonly", false);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
fgSetBool("/sim/fghome-readonly", false);
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
flightgear::fatalMessageBox("File permissions problem",
|
flightgear::fatalMessageBox("File permissions problem",
|
||||||
"Can't write to user-data storage folder, check file permissions and FG_HOME.",
|
"Can't write to user-data storage folder, check file permissions and FG_HOME.",
|
||||||
|
|
Loading…
Add table
Reference in a new issue