1
0
Fork 0

data hack: escalate some more; this disgusting hack must die *soon*!

This commit is contained in:
mfranz 2009-01-30 17:55:14 +00:00 committed by Tim Moore
parent aa0dccf1e1
commit 5efca258c1

View file

@ -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