]> git.mxchange.org Git - flightgear.git/commitdiff
expose HLA/RTI availability to property tree - for use in about dialog
authorhooray <hooray@hush.com>
Sun, 26 May 2013 12:43:53 +0000 (14:43 +0200)
committerJames Turner <jmt@Bishop.local>
Fri, 21 Jun 2013 11:14:40 +0000 (12:14 +0100)
src/Main/options.cxx

index 0a1f2f149cca98b4bb6864d24c44aac5cb8a0423..2e7b02f550b1b8cddcc00d67aef4896db380285a 100644 (file)
@@ -240,7 +240,12 @@ fgSetDefaults ()
     fgSetString("/sim/version/revision", REVISION);
     fgSetInt("/sim/version/build-number", HUDSON_BUILD_NUMBER);
     fgSetString("/sim/version/build-id", HUDSON_BUILD_ID);
-  
+#ifdef FG_HAVE_HLA     // -DENABLE_RTI=ON
+    fgSetBool("/sim/version/hla-support", true);
+#else                  // -DENABLE_RTI=OFF
+    fgSetBool("/sim/version/hla-support", false);
+#endif
+
   char* envp = ::getenv( "http_proxy" );
     if( envp != NULL )
       fgSetupProxy( envp );