From 86b906e84e54e286321e46a2e8c1ea51bd341a4d Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 14 Nov 2010 22:55:55 +0000 Subject: [PATCH] Expose SimGear and OSG versions via properties too. --- src/Main/options.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5