From: mfranz Date: Mon, 13 Feb 2006 16:49:18 +0000 (+0000) Subject: set /sim/fg-home in analogy to /sim/fg-root. This is useful for various X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b047b1831201427b8f6a2948a786f2516be3712;p=flightgear.git set /sim/fg-home in analogy to /sim/fg-root. This is useful for various 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) --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index be2598893..73217c258 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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 {