X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Foptions.cxx;h=bededfb71e43ed8cbbfe535954bb60a1f5d57440;hb=0f00caa406c6dedd492e73249aabea9c05d06e1a;hp=b46424e53e71c4bc059bb4a0f0c63b6247bf4ab3;hpb=a3b66adf51cd70578d1b5e6283b0e7475fb379fd;p=flightgear.git diff --git a/src/Main/options.cxx b/src/Main/options.cxx index b46424e53..bededfb71 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -62,6 +62,7 @@ #include "util.hxx" #include "viewmgr.hxx" #include
+#include using std::string; using std::sort; @@ -189,7 +190,7 @@ fgSetDefaults () fgSetBool("/sim/hud/visibility", false); fgSetBool("/sim/panel/visibility", true); fgSetBool("/sim/sound/enabled", true); - fgSetBool("/sim/sound/pause", false); + fgSetBool("/sim/sound/working", true); // Flight Model options fgSetString("/sim/flight-model", "jsb"); @@ -204,7 +205,7 @@ fgSetDefaults () fgSetBool("/sim/rendering/shading", true); fgSetBool("/sim/rendering/skyblend", true); fgSetBool("/sim/rendering/textures", true); - fgTie( "/sim/rendering/filtering", SGGetTextureFilter, SGSetTextureFilter, false); + fgTie( "/sim/rendering/filtering", SGGetTextureFilter, SGSetTextureFilter, false); fgSetInt("/sim/rendering/filtering", 1); fgSetBool("/sim/rendering/wireframe", false); fgSetBool("/sim/rendering/horizon-effect", false); @@ -1197,9 +1198,22 @@ fgOptParking( const char *arg ) static int fgOptVersion( const char *arg ) { - cerr << VERSION << endl; + cerr << "FlightGear version: " << VERSION << endl; cerr << "FG_ROOT=" << globals->get_fg_root() << endl; cerr << "FG_HOME=" << fgGetString("/sim/fg-home") << endl; + cerr << "FG_SCENERY="; + + int didsome = 0; + string_list scn = globals->get_fg_scenery(); + for (string_list::const_iterator it = scn.begin(); it != scn.end(); it++) + { + if (didsome) cerr << ":"; + didsome++; + cerr << *it; + } + cerr << endl; + cerr << "SimGear version: " << SG_STRINGIZE(SIMGEAR_VERSION) << endl; + cerr << "PLIB version: " << PLIB_VERSION << endl; return FG_OPTIONS_EXIT; } @@ -1293,8 +1307,8 @@ struct OptionDesc { {"enable-hud", false, OPTION_BOOL, "/sim/hud/visibility", true, "", 0 }, {"disable-panel", false, OPTION_BOOL, "/sim/panel/visibility", false, "", 0 }, {"enable-panel", false, OPTION_BOOL, "/sim/panel/visibility", true, "", 0 }, - {"disable-sound", false, OPTION_BOOL, "/sim/sound/enabled", false, "", 0 }, - {"enable-sound", false, OPTION_BOOL, "/sim/sound/enabled", true, "", 0 }, + {"disable-sound", false, OPTION_BOOL, "/sim/sound/working", false, "", 0 }, + {"enable-sound", false, OPTION_BOOL, "/sim/sound/working", true, "", 0 }, {"sound-device", true, OPTION_STRING, "/sim/sound/device-name", false, "", 0 }, {"airport", true, OPTION_STRING, "/sim/presets/airport-id", false, "", 0 }, {"runway", true, OPTION_FUNC, "", false, "", fgOptRunway }, @@ -1630,9 +1644,16 @@ fgParseArgs (int argc, char **argv) } else if (result == FG_OPTIONS_SHOW_SOUND_DEVICES) { SGSoundMgr smgr; + + smgr.init(); + string vendor = smgr.get_vendor(); + string renderer = smgr.get_renderer(); + cout << renderer << " provided by " << vendor << endl; + cout << endl << "No. Device" << endl; + vector devices = smgr.get_available_devices(); for (int i=0; i