From e26310ef4d3224485cd1dc01ad716862f0398719 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 21 Oct 2022 20:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Main/options.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Main/options.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index f63d2a8..30ef030 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -125,6 +125,13 @@ static int fgSetupProxy( const char *arg ); void fgSetDefaults () { + + //zhongjin + + fgSetBool("/sim/terrasync/global", false); + fgSetString("/sim/sound/ttsurl", ""); + + // Position (deliberately out of range) fgSetDouble("/position/longitude-deg", 9999.0); fgSetDouble("/position/latitude-deg", 9999.0); @@ -1787,6 +1794,8 @@ where: enum OptionType { OPTION_BOOL = 0, OPTION_STRING, OPTION_DOUBLE, OPTION_INT, OPTION_CHANNEL, OPTION_FUNC, OPTION_IGNORE }; const int OPTION_MULTI = 1 << 17; +//zhongjin add ttsurl ... + struct OptionDesc { const char *option; bool has_param; @@ -1797,6 +1806,11 @@ struct OptionDesc { int (*func)( const char * ); } fgOptionArray[] = { + {"ttsurl", true, OPTION_STRING, "/sim/sound/ttsurl", false, "", 0 }, + {"hidemenu", false, OPTION_BOOL, "/sim/menubar/visibility", false, "", nullptr }, + {"showmenu", false, OPTION_BOOL, "/sim/menubar/visibility", true, "", nullptr }, + {"global", true, OPTION_BOOL, "/sim/terrasync/global", false, "", nullptr }, + {"language", true, OPTION_IGNORE, "", false, "", 0 }, {"console", false, OPTION_FUNC, "", false, "", fgOptConsole }, {"launcher", false, OPTION_IGNORE, "", false, "", 0 },