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 },