1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 17:58:41 +00:00

Add a link from the netplay menu to netplay settings

This commit is contained in:
Gregor Richards 2016-10-02 23:27:12 -04:00
parent 2e70d0284e
commit 159a45187a
3 changed files with 26 additions and 0 deletions

View File

@ -1612,6 +1612,10 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
snprintf(s, len,
"Disconnects an active Netplay connection.");
break;
case MENU_ENUM_LABEL_NETPLAY_SETTINGS:
snprintf(s, len,
"Setting related to Netplay.");
break;
case MENU_ENUM_LABEL_DYNAMIC_WALLPAPER:
snprintf(s, len,
"Dynamically load a new wallpaper \n"
@ -2488,6 +2492,8 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
return "menu_netplay_enable_client";
case MENU_ENUM_LABEL_NETPLAY_DISCONNECT:
return "menu_netplay_disconnect";
case MENU_ENUM_LABEL_NETPLAY_SETTINGS:
return "menu_netplay_settings";
case MENU_ENUM_LABEL_DPI_OVERRIDE_ENABLE:
return "dpi_override_enable";
case MENU_ENUM_LABEL_DPI_OVERRIDE_VALUE:
@ -3825,6 +3831,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "Connect to Netplay host";
case MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT:
return "Disconnect";
case MENU_ENUM_LABEL_VALUE_NETPLAY_SETTINGS:
return "Netplay settings";
case MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_ENABLE:
return "DPI Override Enable";
case MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_VALUE:

View File

@ -1500,10 +1500,21 @@ static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)
return 0;
}
static int menu_displaylist_parse_settings_enum(void *data,
menu_displaylist_info_t *info,
enum msg_hash_enums label,
enum menu_displaylist_parse_type parse_type,
bool add_empty_entry);
static int menu_displaylist_parse_netplay(
menu_displaylist_info_t *info)
{
#ifdef HAVE_NETWORKING
menu_handle_t *menu = NULL;
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
menu = NULL;
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST),
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST),
@ -1522,6 +1533,11 @@ static int menu_displaylist_parse_netplay(
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
MENU_SETTING_ACTION, 0, 0);
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_SETTINGS),
MENU_ENUM_LABEL_NETWORK_SETTINGS, MENU_SETTING_GROUP, 0, 0);
#else
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),

View File

@ -967,6 +967,8 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_CLIENT,
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT,
MENU_ENUM_LABEL_NETPLAY_SETTINGS,
MENU_ENUM_LABEL_VALUE_NETPLAY_SETTINGS,