From: curt Date: Mon, 9 Jan 2006 03:47:33 +0000 (+0000) Subject: Write 'fg_root' in the property tree at /sim/fg-root X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee065ee6efa09dcfbe13bd2bb7d319069ba9d1f8;p=flightgear.git Write 'fg_root' in the property tree at /sim/fg-root --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 8b8a6a853..6a9b3f88c 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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) {