data hack: escalate some more; this disgusting hack must die *soon*!
This commit is contained in:
parent
aa0dccf1e1
commit
5efca258c1
1 changed files with 4 additions and 2 deletions
|
@ -168,9 +168,11 @@ void FGGlobals::set_fg_root (const string &root) {
|
|||
tmp.append( "data" );
|
||||
tmp.append( "version" );
|
||||
if ( ulFileExists( tmp.c_str() ) ) {
|
||||
fgGetNode("BAD_FG_ROOT", true)->setStringValue(fg_root);
|
||||
fg_root += "/data";
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, "Warning: changing bad FG_ROOT/--fg-root to '"
|
||||
<< fg_root << '\'');
|
||||
fgGetNode("GOOD_FG_ROOT", true)->setStringValue(fg_root);
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, "***\n***\n*** Warning: changing bad FG_ROOT/--fg-root to '"
|
||||
<< fg_root << "'\n***\n***");
|
||||
}
|
||||
|
||||
// remove /sim/fg-root before writing to prevent hijacking
|
||||
|
|
Loading…
Add table
Reference in a new issue