From 87606ef88a68ac33f00afc05ae12028fa1e0fd8c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Feb 2017 06:50:26 +0100 Subject: [PATCH] Add sublabels --- intl/msg_hash_us.h | 4 +++- menu/cbs/menu_cbs_sublabel.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 3ba759c193..8ef9c5b2a8 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2386,7 +2386,7 @@ MSG_HASH( MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_BOKEH, "Bokeh") MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_REFRESH_ROOMS, - "Refresh Room List") + "Refresh") MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_ROOM_NICKNAME, "Nickname: %s") MSG_HASH(MENU_ENUM_LABEL_VALUE_NETPLAY_COMPAT_CONTENT_FOUND, @@ -2689,3 +2689,5 @@ MSG_HASH(MENU_ENUM_SUBLABEL_BUILDBOT_ASSETS_URL, MSG_HASH(MENU_ENUM_SUBLABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE, "After downloading, automatically extract archives that the downloads are contained inside." ) +MSG_HASH(MENU_ENUM_SUBLABEL_NETPLAY_REFRESH_ROOMS, + "Scan for new rooms.") diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index cfdc48e252..e7fb78791a 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -210,6 +210,7 @@ default_sublabel_macro(action_bind_sublabel_netplay_client_swap_input, MENU_ default_sublabel_macro(action_bind_sublabel_core_updater_buildbot_url, MENU_ENUM_SUBLABEL_CORE_UPDATER_BUILDBOT_URL) default_sublabel_macro(action_bind_sublabel_core_updater_buildbot_assets_url, MENU_ENUM_SUBLABEL_BUILDBOT_ASSETS_URL) default_sublabel_macro(action_bind_sublabel_core_updater_auto_extract_archive, MENU_ENUM_SUBLABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE) +default_sublabel_macro(action_bind_sublabel_netplay_refresh_rooms, MENU_ENUM_SUBLABEL_NETPLAY_REFRESH_ROOMS) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -271,6 +272,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_NETPLAY_REFRESH_ROOMS: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_netplay_refresh_rooms); + break; case MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_core_updater_auto_extract_archive); break;