1
0
Fork 0

fgValidatePath: remove overly fragile test case

Fix failure to start with non-standard TerraSync directory
This commit is contained in:
Rebecca N. Palmer 2015-07-14 19:43:51 +01:00
parent eb95edf2fc
commit e2cbacff90

View file

@ -156,7 +156,6 @@ void fgInitAllowedPaths()
!fgValidatePath(globals->get_fg_home() + "/nolog",true).empty() || !fgValidatePath(globals->get_fg_home() + "/nolog",true).empty() ||
!fgValidatePath(globals->get_fg_home() + "no.log",true).empty() || !fgValidatePath(globals->get_fg_home() + "no.log",true).empty() ||
!fgValidatePath(globals->get_fg_home() + "\\..\\no.log",false).empty() || !fgValidatePath(globals->get_fg_home() + "\\..\\no.log",false).empty() ||
fgValidatePath(globals->get_fg_home() + "/./TerraSync/../Export\\yes..gg",true).empty() ||
fgValidatePath(globals->get_fg_home() + "/aircraft-data/yes..xml",true).empty() || fgValidatePath(globals->get_fg_home() + "/aircraft-data/yes..xml",true).empty() ||
fgValidatePath(globals->get_fg_root() + "/.\\yes.bmp",false).empty()) { fgValidatePath(globals->get_fg_root() + "/.\\yes.bmp",false).empty()) {
flightgear::fatalMessageBox("Nasal initialization error", flightgear::fatalMessageBox("Nasal initialization error",