mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-13 13:24:01 +00:00
Add netplay settings sublist
This commit is contained in:
parent
0c3283574d
commit
6b1b8fc35a
@ -702,6 +702,14 @@ int generic_action_ok_displaylist_push(const char *path,
|
||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_WIFI_SETTINGS_LIST;
|
||||
dl_type = DISPLAYLIST_GENERIC;
|
||||
break;
|
||||
case ACTION_OK_DL_NETPLAY:
|
||||
info.directory_ptr = idx;
|
||||
info.type = type;
|
||||
info_path = path;
|
||||
info_label = msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_NETPLAY);
|
||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_NETPLAY;
|
||||
dl_type = DISPLAYLIST_GENERIC;
|
||||
break;
|
||||
case ACTION_OK_DL_NETPLAY_LAN_SCAN_SETTINGS_LIST:
|
||||
info.directory_ptr = idx;
|
||||
info.type = type;
|
||||
@ -3414,6 +3422,13 @@ static int action_ok_user_list(const char *path,
|
||||
entry_idx, ACTION_OK_DL_USER_SETTINGS_LIST);
|
||||
}
|
||||
|
||||
static int action_ok_netplay_sublist(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
return generic_action_ok_displaylist_push(path, NULL, label, type, idx,
|
||||
entry_idx, ACTION_OK_DL_NETPLAY);
|
||||
}
|
||||
|
||||
static int action_ok_directory_list(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
@ -4738,6 +4753,9 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_LAKKA_SERVICES:
|
||||
BIND_ACTION_OK(cbs, action_ok_lakka_services);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_NETPLAY_SETTINGS:
|
||||
BIND_ACTION_OK(cbs, action_ok_netplay_sublist);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_USER_SETTINGS:
|
||||
BIND_ACTION_OK(cbs, action_ok_user_list);
|
||||
break;
|
||||
|
@ -33,6 +33,7 @@ enum
|
||||
ACTION_OK_DL_OPEN_ARCHIVE,
|
||||
ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE,
|
||||
ACTION_OK_DL_MUSIC,
|
||||
ACTION_OK_DL_NETPLAY,
|
||||
ACTION_OK_DL_SCAN_DIR_LIST,
|
||||
ACTION_OK_DL_HELP,
|
||||
ACTION_OK_DL_RPL_ENTRY,
|
||||
|
@ -918,6 +918,7 @@ enum msg_hash_enums
|
||||
MENU_LABEL(INFORMATION),
|
||||
MENU_LABEL(INFORMATION_LIST),
|
||||
MENU_LABEL(USE_BUILTIN_PLAYER),
|
||||
MENU_LABEL(NETPLAY_SETTINGS),
|
||||
MENU_LABEL(CONTENT_SETTINGS),
|
||||
MENU_LABEL(LOAD_CONTENT_LIST),
|
||||
MENU_LABEL(NO_SETTINGS_FOUND),
|
||||
@ -932,7 +933,6 @@ enum msg_hash_enums
|
||||
MENU_LABEL(NETPLAY_DISABLE_HOST),
|
||||
MENU_LABEL(NETPLAY_ENABLE_CLIENT),
|
||||
MENU_LABEL(NETPLAY_DISCONNECT),
|
||||
MENU_LABEL(NETPLAY_SETTINGS),
|
||||
MENU_LABEL(NETPLAY_CONNECT_TO),
|
||||
MENU_LABEL(NO_NETPLAY_HOSTS_FOUND),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user