diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index ec6fbf5c3a..d1e744c204 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -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; diff --git a/menu/menu_cbs.h b/menu/menu_cbs.h index d5e194b5bb..7e39bf7d94 100644 --- a/menu/menu_cbs.h +++ b/menu/menu_cbs.h @@ -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, diff --git a/msg_hash.h b/msg_hash.h index 77cc700c1b..60aa55c89d 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -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),