1
0
Fork 0

Nasal security: give a more user-friendly error on self-check fail

https://sourceforge.net/p/flightgear/mailman/message/34701972/
This commit is contained in:
Rebecca N. Palmer 2016-02-10 22:54:52 +00:00
parent c889198d09
commit 16e6009255

View file

@ -149,8 +149,8 @@ void fgInitAllowedPaths()
fgValidatePath(globals->get_fg_home() + "/aircraft-data/yes..xml",true).empty() ||
fgValidatePath(globals->get_fg_root() + "/.\\yes.bmp",false).empty()) {
flightgear::fatalMessageBox("Nasal initialization error",
"fgInitAllowedPaths() does not work",
"");
"The FG_HOME directory must not be inside any of the FG_ROOT, FG_AIRCRAFT or FG_SCENERY directories",
"(check that you have not accidentally included an extra :, as an empty part means the current directory)");
exit(-1);
}
}