From: James Turner Date: Sun, 14 Nov 2010 22:55:55 +0000 (+0000) Subject: Expose SimGear and OSG versions via properties too. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=86b906e84e54e286321e46a2e8c1ea51bd341a4d;p=flightgear.git Expose SimGear and OSG versions via properties too. --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 06b2b7f89..b46dc6e4a 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -56,7 +56,9 @@ #include "util.hxx" #include "viewmgr.hxx" #include
+ #include +#include using std::string; using std::sort; @@ -237,7 +239,8 @@ fgSetDefaults () fgSetInt("/sim/multiplay/txport", 0); fgSetString("/sim/version/flightgear", FLIGHTGEAR_VERSION); - //fgSetString("/sim/version/simgear", FLIGHTGEAR_VERSION); + fgSetString("/sim/version/simgear", SG_STRINGIZE(SIMGEAR_VERSION)); + fgSetString("/sim/version/openscenegraph", osgGetVersion()); fgSetString("/sim/version/revision", REVISION); fgSetInt("/sim/version/build-number", HUDSON_BUILD_NUMBER); fgSetString("/sim/version/build-id", HUDSON_BUILD_ID);