From 3b047b1831201427b8f6a2948a786f2516be3712 Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 13 Feb 2006 16:49:18 +0000 Subject: [PATCH] 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) --- src/Main/fg_init.cxx | 1 + 1 file changed, 1 insertion(+) 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 {