From: mfranz Date: Fri, 30 Jan 2009 17:55:14 +0000 (+0000) Subject: data hack: escalate some more; this disgusting hack must die *soon*! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5efca258c11ccd3d9de4c4b7ae2e3f08af405b6f;p=flightgear.git data hack: escalate some more; this disgusting hack must die *soon*! --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index c80053fe5..0e5433006 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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