From 5efca258c11ccd3d9de4c4b7ae2e3f08af405b6f Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 30 Jan 2009 17:55:14 +0000 Subject: [PATCH] data hack: escalate some more; this disgusting hack must die *soon*! --- src/Main/globals.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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