X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Foptions.cxx;h=bededfb71e43ed8cbbfe535954bb60a1f5d57440;hb=b587400846111cc4d6713dcdd38b715c97923d5a;hp=e03f1b1f00929ebe7957fefff53a0ef1f361d418;hpb=15b6c431c051d04d501b12b5a47ca721964017f1;p=flightgear.git diff --git a/src/Main/options.cxx b/src/Main/options.cxx index e03f1b1f0..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; @@ -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; } @@ -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