]> git.mxchange.org Git - flightgear.git/commitdiff
Write 'fg_root' in the property tree at /sim/fg-root
authorcurt <curt>
Mon, 9 Jan 2006 03:47:33 +0000 (03:47 +0000)
committercurt <curt>
Mon, 9 Jan 2006 03:47:33 +0000 (03:47 +0000)
src/Main/globals.cxx

index 8b8a6a853c2d52c4a3bed4e51880390378adf566..6a9b3f88cd92ca2355d5e79080a6d642a0eb7300 100644 (file)
@@ -117,7 +117,9 @@ void FGGlobals::set_fg_root (const string &root) {
     tmp.append( "version" );
     if ( ulFileExists( tmp.c_str() ) ) {
         fg_root += "/data";
-        }
+    }
+
+    fgSetString("/sim/fg-root", fg_root.c_str());   
 }
 
 void FGGlobals::set_fg_scenery (const string &scenery) {