]> git.mxchange.org Git - flightgear.git/commitdiff
set /sim/fg-home in analogy to /sim/fg-root. This is useful for various
authormfranz <mfranz>
Mon, 13 Feb 2006 16:49:18 +0000 (16:49 +0000)
committermfranz <mfranz>
Mon, 13 Feb 2006 16:49:18 +0000 (16:49 +0000)
scripts that load/write user specific data that shouldn't go to PWD, and
can't go to $FG_ROOT (due to permissions and clean separation of 'official'
data and local modifications)

src/Main/fg_init.cxx

index be2598893cda909a7ec9207edf9a1cfd4e416591..73217c25835c3797218223e3a5ec0f35bb9acd07 100644 (file)
@@ -607,6 +607,7 @@ bool fgInitConfig ( int argc, char **argv ) {
         SGPath config( homedir );
         config.append( ".fgfs" );
 #endif
+        fgSetString("/sim/fg-home", config.c_str());
         config.append( "autosave.xml" );
         SG_LOG(SG_INPUT, SG_INFO, "Reading user settings from autosave.xml");
         try {