From 20d517e4db54242a813294b8ec778720ddff2642 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Feb 2017 09:29:02 +0100 Subject: [PATCH] Add sublabel --- intl/msg_hash_us.h | 2 ++ menu/cbs/menu_cbs_sublabel.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 7122a4cb9f..8a952dcd50 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2763,3 +2763,5 @@ MSG_HASH(MENU_ENUM_SUBLABEL_SHOW_ADVANCED_SETTINGS, "Show advanced settings for powerusers (hidden by default).") MSG_HASH(MENU_ENUM_SUBLABEL_THREADED_DATA_RUNLOOP_ENABLE, "Perform tasks on a seperate thread.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_REMOVE, + "Allow the user to remove entries from collections.") diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 80f628b4c2..33971d9712 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -241,6 +241,7 @@ default_sublabel_macro(action_bind_sublabel_core_input_remapping_options, default_sublabel_macro(action_bind_sublabel_core_options, MENU_ENUM_SUBLABEL_CORE_OPTIONS) default_sublabel_macro(action_bind_sublabel_show_advanced_settings, MENU_ENUM_SUBLABEL_SHOW_ADVANCED_SETTINGS) default_sublabel_macro(action_bind_sublabel_threaded_data_runloop_enable, MENU_ENUM_SUBLABEL_THREADED_DATA_RUNLOOP_ENABLE) +default_sublabel_macro(action_bind_sublabel_playlist_entry_remove, MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_REMOVE) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -302,6 +303,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_playlist_entry_remove); + break; case MENU_ENUM_LABEL_THREADED_DATA_RUNLOOP_ENABLE: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_threaded_data_runloop_enable); break;