Files
RetroArch/settings/settings_def_netplay_sync.h
LibretroAdmin d877bf40f8 menu: sublabels for four Network settings
Digital Input Sharing, Analog Input Sharing, Network Commands and
Network RetroPad had none. Each now says what it does; the last two
also say that nothing is asked of the sender.
2026-10-04 09:30:49 +02:00

59 lines
4.1 KiB
C

/* Single-source definitions: netplay sync group.
* Grammar identical to settings_def_video_sync.h plus S_FLOAT and
* the _NS no-sublabel variants; the descriptor argument span
* matches SDESC_<kind>_ROW; row order is menu display order;
* h2json.py parses these rows for the Crowdin source upload. */
/* Descriptor and configuration rows are #if defined(HAVE_NETWORKING); the string
* tables always carry this row via the strings pass. */
#if defined(HAVE_NETWORKING) || defined(SETTINGS_DEF_STRINGS_PASS)
/* The configuration row lives under defined(HAVE_NETWORKING); other passes are
* unaffected. */
#if !defined(SETTINGS_DEF_CONFIG_PASS) || (defined(HAVE_NETWORKING))
S_BOOL(netplay_nat_traversal, NETPLAY_NAT_TRAVERSAL,
"netplay_nat_traversal",
true, SD_FLAG_ADVANCED, 0, 0,
"Netplay NAT Traversal",
"When hosting, attempt to listen for connections from the public Internet, using UPnP or similar technologies to escape LANs.")
#endif
#endif
/* Descriptor and configuration rows are #if defined(HAVE_NETWORKING); the string
* tables always carry this row via the strings pass. */
#if defined(HAVE_NETWORKING) || defined(SETTINGS_DEF_STRINGS_PASS)
/* The configuration row lives under defined(HAVE_NETWORKING); other passes are
* unaffected. */
#if !defined(SETTINGS_DEF_CONFIG_PASS) || (defined(HAVE_NETWORKING))
S_UINT_EX(netplay_share_digital, NETPLAY_SHARE_DIGITAL,
"netplay_share_digital",
DEFAULT_NETPLAY_SHARE_DIGITAL, SD_FLAG_NONE, SDESC_RANGE_MINMAX, 0, 0, RARCH_NETPLAY_SHARE_DIGITAL_LAST-1, 1, 0, setting_action_ok_uint, setting_get_string_representation_netplay_share_digital, NULL, NULL, NULL, NULL, ST_UI_TYPE_UINT_COMBOBOX,
"Digital Input Sharing",
"For a player slot shared with other netplay clients: how their buttons combine. 'Share': pressed when anyone presses it. 'Grapple': pressed when an odd number of players press it. 'Vote': pressed when most do. With this and Analog Input Sharing at 'None', a slot of your own is asked for.")
#endif
#endif
/* Descriptor and configuration rows are #if defined(HAVE_NETWORKING); the string
* tables always carry this row via the strings pass. */
#if defined(HAVE_NETWORKING) || defined(SETTINGS_DEF_STRINGS_PASS)
/* The configuration row lives under defined(HAVE_NETWORKING); other passes are
* unaffected. */
#if !defined(SETTINGS_DEF_CONFIG_PASS) || (defined(HAVE_NETWORKING))
S_UINT_EX(netplay_share_analog, NETPLAY_SHARE_ANALOG,
"netplay_share_analog",
DEFAULT_NETPLAY_SHARE_ANALOG, SD_FLAG_NONE, SDESC_RANGE_MINMAX, 0, 0, RARCH_NETPLAY_SHARE_ANALOG_LAST-1, 1, 0, setting_action_ok_uint, setting_get_string_representation_netplay_share_analog, NULL, NULL, NULL, NULL, ST_UI_TYPE_UINT_COMBOBOX,
"Analog Input Sharing",
"For a player slot shared with other netplay clients: how their analog sticks combine. 'Max': the strongest push wins. 'Average': the mean of them all. With this and Digital Input Sharing at 'None', a slot of your own is asked for.")
#endif
#endif
/* TLS certificate-verification policy for outbound HTTPS.
* Values are enum tls_verify_mode (network/tls_config.h); the default
* DEFAULT_TLS_VERIFY_MODE is TLS_VERIFY_REQUIRED, which fails closed.
* general_write_handler pushes a change to the SSL backend live.
* Descriptor and configuration rows need HAVE_SSL as well; the string
* tables always carry this row via the strings pass. */
#if (defined(HAVE_NETWORKING) && defined(HAVE_SSL)) || defined(SETTINGS_DEF_STRINGS_PASS)
S_UINT_EX(tls_verify_mode, TLS_VERIFY_MODE,
"tls_verify_mode",
DEFAULT_TLS_VERIFY_MODE, SD_FLAG_ADVANCED, SDESC_RANGE_MINMAX, 0, 0, TLS_VERIFY_MODE_LAST-1, 1, 0, setting_action_ok_uint, setting_get_string_representation_tls_verify_mode, NULL, NULL, NULL, NULL, ST_UI_TYPE_UINT_COMBOBOX,
"TLS Certificate Verification",
"Controls how server certificates are checked on secure (HTTPS) connections used by Cloud Sync, RetroAchievements and the Online Updater. 'Required' rejects untrusted certificates and protects against man-in-the-middle attacks. Only lower this if you connect through a corporate proxy or to a self-signed host you trust.")
#endif