mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Adding spectate password to the menu
This commit is contained in:
parent
03415c261d
commit
a2d377f089
@ -593,6 +593,8 @@ MSG_HASH(MENU_ENUM_LABEL_NETPLAY_PASSWORD,
|
||||
"netplay_password")
|
||||
MSG_HASH(MENU_ENUM_LABEL_NETPLAY_SETTINGS,
|
||||
"menu_netplay_settings")
|
||||
MSG_HASH(MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD,
|
||||
"netplay_spectate_password")
|
||||
MSG_HASH(MENU_ENUM_LABEL_NETPLAY_SPECTATOR_MODE_ENABLE,
|
||||
"netplay_spectator_mode_enable")
|
||||
MSG_HASH(MENU_ENUM_LABEL_NETPLAY_TCP_UDP_PORT,
|
||||
|
@ -1702,6 +1702,12 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
|
||||
"The password for connecting to the netplay \n"
|
||||
"host. Used only in host mode.");
|
||||
break;
|
||||
case MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD:
|
||||
snprintf(s, len,
|
||||
"The password for connecting to the netplay \n"
|
||||
"host with only spectator privileges. Used \n"
|
||||
"only in host mode.");
|
||||
break;
|
||||
case MENU_ENUM_LABEL_STDIN_CMD_ENABLE:
|
||||
snprintf(s, len,
|
||||
"Enable stdin command interface.");
|
||||
|
@ -924,6 +924,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_PASSWORD,
|
||||
"Server Password")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_SETTINGS,
|
||||
"Netplay settings")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_SPECTATE_PASSWORD,
|
||||
"Server Spectate-Only Password")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_SPECTATOR_MODE_ENABLE,
|
||||
"Netplay Spectator Enable")
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_TCP_UDP_PORT,
|
||||
|
@ -4693,6 +4693,10 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
||||
MENU_ENUM_LABEL_NETPLAY_PASSWORD,
|
||||
PARSE_ONLY_STRING, false) != -1)
|
||||
count++;
|
||||
if (menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD,
|
||||
PARSE_ONLY_STRING, false) != -1)
|
||||
count++;
|
||||
if (menu_displaylist_parse_settings_enum(menu, info,
|
||||
MENU_ENUM_LABEL_NETPLAY_DELAY_FRAMES,
|
||||
PARSE_ONLY_UINT, false) != -1)
|
||||
|
@ -5591,6 +5591,20 @@ static bool setting_append_list(
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
|
||||
CONFIG_STRING(
|
||||
list, list_info,
|
||||
settings->netplay.spectate_password,
|
||||
sizeof(settings->netplay.spectate_password),
|
||||
MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD,
|
||||
MENU_ENUM_LABEL_VALUE_NETPLAY_SPECTATE_PASSWORD,
|
||||
"",
|
||||
&group_info,
|
||||
&subgroup_info,
|
||||
parent_group,
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
&settings->netplay.delay_frames,
|
||||
|
@ -1004,6 +1004,7 @@ enum msg_hash_enums
|
||||
MENU_LABEL(SORT_SAVESTATES_ENABLE),
|
||||
MENU_LABEL(NETPLAY_IP_ADDRESS),
|
||||
MENU_LABEL(NETPLAY_PASSWORD),
|
||||
MENU_LABEL(NETPLAY_SPECTATE_PASSWORD),
|
||||
MENU_LABEL(NETPLAY_MODE),
|
||||
MENU_LABEL(PERFCNT_ENABLE),
|
||||
MENU_LABEL(OVERLAY_SCALE),
|
||||
|
Loading…
x
Reference in New Issue
Block a user