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:
parent
c889198d09
commit
16e6009255
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue