]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_init.cxx
set /sim/fg-home in analogy to /sim/fg-root. This is useful for various
[flightgear.git] / src / Main / fg_init.cxx
index 9cda8aba1a8340c99cabed70123c2c5fc3b060ed..73217c25835c3797218223e3a5ec0f35bb9acd07 100644 (file)
 #include <Sound/fg_fx.hxx>
 #include <Sound/beacon.hxx>
 #include <Sound/morse.hxx>
+#include <Sound/voice.hxx>
 #include <Systems/system_mgr.hxx>
 #include <Time/light.hxx>
 #include <Time/sunsolver.hxx>
@@ -606,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 {
@@ -1677,7 +1679,7 @@ bool fgInitSubsystems() {
     ////////////////////////////////////////////////////////////////////
 
     globals->add_subsystem("fx", new FGFX);
-    
+    globals->add_subsystem("voice", new FGVoiceMgr);
 #endif
 
     ////////////////////////////////////////////////////////////////////