更新 'src/Main/options.cxx'

This commit is contained in:
zhongjin 2022-10-21 20:05:46 +08:00
parent ac839b6a6c
commit e26310ef4d

View File

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