]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_init.cxx
Fix line endings
[flightgear.git] / src / Main / fg_init.cxx
index 9cda8aba1a8340c99cabed70123c2c5fc3b060ed..491dd1edf34aeab7ea1573473ed60d6baf345d7c 100644 (file)
 #include <Scenery/scenery.hxx>
 #include <Scenery/tilemgr.hxx>
 #include <Scripting/NasalSys.hxx>
-#include <Scripting/NasalDisplay.hxx>
 #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>
 #include <Time/tmp.hxx>
 #include <Traffic/TrafficMgr.hxx>
-
-#ifdef FG_MPLAYER_AS
 #include <MultiPlayer/multiplaymgr.hxx>
-#endif
 
 #include <Environment/environment_mgr.hxx>
 
@@ -606,6 +603,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 +1675,7 @@ bool fgInitSubsystems() {
     ////////////////////////////////////////////////////////////////////
 
     globals->add_subsystem("fx", new FGFX);
-    
+    globals->add_subsystem("voice", new FGVoiceMgr);
 #endif
 
     ////////////////////////////////////////////////////////////////////
@@ -1759,14 +1757,6 @@ bool fgInitSubsystems() {
     globals->get_io()->bind();
 
 
-    ////////////////////////////////////////////////////////////////////
-    // Initialise Nasal display system
-    ////////////////////////////////////////////////////////////////////
-
-    SG_LOG(SG_GENERAL, SG_INFO, "  Nasal Display");
-    globals->set_Nasal_display(new FGNasalDisplay);
-    globals->get_Nasal_display()->init(); 
-
     ////////////////////////////////////////////////////////////////////
     // Add a new 2D panel.
     ////////////////////////////////////////////////////////////////////
@@ -1812,14 +1802,12 @@ bool fgInitSubsystems() {
     globals->get_subsystem_mgr()->bind();
     globals->get_subsystem_mgr()->init();
 
-#ifdef FG_MPLAYER_AS
     ////////////////////////////////////////////////////////////////////
     // Initialize multiplayer subsystem
     ////////////////////////////////////////////////////////////////////
 
     globals->set_multiplayer_mgr(new FGMultiplayMgr);
     globals->get_multiplayer_mgr()->init();
-#endif
 
     ////////////////////////////////////////////////////////////////////////
     // Initialize the Nasal interpreter.