]> git.mxchange.org Git - flightgear.git/commitdiff
warn about badly set fg-root
authormfranz <mfranz>
Thu, 2 Oct 2008 08:33:49 +0000 (08:33 +0000)
committermfranz <mfranz>
Thu, 2 Oct 2008 08:33:49 +0000 (08:33 +0000)
src/Main/globals.cxx

index bf7ff48c4ab3a5ad9fad69455fb28d4f21a5afb4..7ab82e16e1b287697fdcfc82cb243fdac2ab5598 100644 (file)
@@ -173,6 +173,8 @@ void FGGlobals::set_fg_root (const string &root) {
     tmp.append( "version" );
     if ( ulFileExists( tmp.c_str() ) ) {
         fg_root += "/data";
+        SG_LOG(SG_GENERAL, SG_WARN, "Warning: changing bad FG_ROOT/--fg-root to '"
+                << fg_root << '\'');
     }
 
     // remove /sim/fg-root before writing to prevent hijacking