Fix non-HAVE_NETWORKING targets

This commit is contained in:
twinaphex 2017-01-22 21:27:36 +01:00
parent 2f7f8b01c9
commit b462e0aaf0
2 changed files with 6 additions and 0 deletions

View File

@ -4184,9 +4184,11 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs,
case MENU_ENUM_LABEL_SCAN_FILE:
BIND_ACTION_OK(cbs, action_ok_push_scan_file);
break;
#ifdef HAVE_NETWORKING
case MENU_ENUM_LABEL_NETPLAY_REFRESH_ROOMS:
BIND_ACTION_OK(cbs, action_ok_push_netplay_refresh_rooms);
break;
#endif
case MENU_ENUM_LABEL_FAVORITES:
BIND_ACTION_OK(cbs, action_ok_push_content_list);
break;

View File

@ -144,6 +144,7 @@ static int action_bind_sublabel_cheevos_entry(
return 0;
}
#ifdef HAVE_NETWORKING
static int action_bind_sublabel_netplay_room(
file_list_t *list,
unsigned type, unsigned i,
@ -161,6 +162,7 @@ static int action_bind_sublabel_netplay_room(
#endif
return 0;
}
#endif
static int action_bind_sublabel_generic(
file_list_t *list,
@ -259,9 +261,11 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
case MENU_ENUM_LABEL_CHEEVOS_LOCKED_ENTRY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheevos_entry);
break;
#ifdef HAVE_NETWORKING
case MENU_ENUM_LABEL_CONNECT_NETPLAY_ROOM:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_netplay_room);
break;
#endif
case MENU_ENUM_LABEL_CHEEVOS_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheevos_enable);
break;