1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-03 01:21:10 +00:00

Add deferred hooks for netplay submenu

This commit is contained in:
twinaphex 2017-06-08 00:11:00 +02:00
parent ab087faa2a
commit 0c3283574d
4 changed files with 14 additions and 0 deletions

@ -227,6 +227,8 @@ MSG_HASH(MENU_ENUM_LABEL_DATABASE_MANAGER,
"database_manager") "database_manager")
MSG_HASH(MENU_ENUM_LABEL_DATABASE_MANAGER_LIST, MSG_HASH(MENU_ENUM_LABEL_DATABASE_MANAGER_LIST,
"database_manager_list") "database_manager_list")
MSG_HASH(MENU_ENUM_LABEL_DEFERRED_NETPLAY,
"deferred_netplay")
MSG_HASH(MENU_ENUM_LABEL_DEFERRED_MUSIC, MSG_HASH(MENU_ENUM_LABEL_DEFERRED_MUSIC,
"deferred_music") "deferred_music")
MSG_HASH(MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_START, MSG_HASH(MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_START,

@ -315,6 +315,11 @@ static int deferred_push_netplay(menu_displaylist_info_t *info)
return deferred_push_dlist(info, DISPLAYLIST_NETPLAY_ROOM_LIST); return deferred_push_dlist(info, DISPLAYLIST_NETPLAY_ROOM_LIST);
} }
static int deferred_push_netplay_sublist(menu_displaylist_info_t *info)
{
return deferred_push_dlist(info, DISPLAYLIST_NETPLAY);
}
static int deferred_push_content_settings(menu_displaylist_info_t *info) static int deferred_push_content_settings(menu_displaylist_info_t *info)
{ {
return deferred_push_dlist(info, DISPLAYLIST_CONTENT_SETTINGS); return deferred_push_dlist(info, DISPLAYLIST_CONTENT_SETTINGS);
@ -1039,6 +1044,11 @@ static int menu_cbs_init_bind_deferred_push_compare_label(
{ {
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rpl_entry_actions); BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rpl_entry_actions);
} }
else if (strstr(label,
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_NETPLAY)))
{
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_netplay_sublist);
}
else else
{ {
if (cbs->enum_idx != MSG_UNKNOWN) if (cbs->enum_idx != MSG_UNKNOWN)

@ -4159,6 +4159,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
/* TODO/FIXME ? */ /* TODO/FIXME ? */
break; break;
case DISPLAYLIST_NETPLAY: case DISPLAYLIST_NETPLAY:
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
/* TODO/FIXME ? */ /* TODO/FIXME ? */
break; break;
case DISPLAYLIST_DATABASE_ENTRY: case DISPLAYLIST_DATABASE_ENTRY:

@ -804,6 +804,7 @@ enum msg_hash_enums
MENU_LABEL(BROWSE_URL), MENU_LABEL(BROWSE_URL),
MENU_LABEL(BROWSE_START), MENU_LABEL(BROWSE_START),
/* Deferred */ /* Deferred */
MENU_ENUM_LABEL_DEFERRED_NETPLAY,
MENU_ENUM_LABEL_DEFERRED_MUSIC, MENU_ENUM_LABEL_DEFERRED_MUSIC,
MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_START, MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_START,
MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_LIST, MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_LIST,