From c05aba32a9a9ea12ff09a85dc41851452c8ac46a Mon Sep 17 00:00:00 2001 From: lasers Date: Wed, 16 Nov 2016 03:15:43 -0600 Subject: [PATCH] Add sublabel for Recording --- intl/msg_hash_us.h | 2 ++ menu/cbs/menu_cbs_sublabel.c | 13 +++++++++++++ msg_hash.h | 1 + 3 files changed, 16 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index dc3abf9226..01d6e6e4f3 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -1612,6 +1612,8 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CHEEVOS_HARDCORE_MODE_ENABLE, "Enable or disable savestates, cheats, rewind, fast-forward, pause, and slow-motion for all games.") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_SETTINGS, "Change settings for the core.") +MSG_HASH(MENU_ENUM_SUBLABEL_RECORDING_SETTINGS, + "Change settings for the recording.") MSG_HASH(MENU_ENUM_SUBLABEL_ADD_CONTENT_LIST, "Scan contents and add to the database.") MSG_HASH(MENU_ENUM_SUBLABEL_AUDIO_SETTINGS, diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index e45fd0fe52..59f96abf64 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -40,6 +40,16 @@ static int action_bind_sublabel_generic( return 0; } +static int action_bind_sublabel_recording_settings_list( + file_list_t *list, + unsigned type, unsigned i, + const char *label, const char *path, + char *s, size_t len) +{ + strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_RECORDING_SETTINGS), len); + return 0; +} + static int action_bind_sublabel_core_settings_list( file_list_t *list, unsigned type, unsigned i, @@ -511,6 +521,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_AUDIO_SETTINGS: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_settings_list); break; + case MENU_ENUM_LABEL_RECORDING_SETTINGS: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_recording_settings_list); + break; case MENU_ENUM_LABEL_CORE_SETTINGS: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_core_settings_list); break; diff --git a/msg_hash.h b/msg_hash.h index beaacd1826..9d9c2f2dbf 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1966,6 +1966,7 @@ enum msg_hash_enums MENU_ENUM_SUBLABEL_MENU_SETTINGS, MENU_ENUM_SUBLABEL_NETPLAY, MENU_ENUM_SUBLABEL_ONLINE_UPDATER, + MENU_ENUM_SUBLABEL_RECORDING_SETTINGS, MENU_ENUM_SUBLABEL_SAMBA_ENABLE, MENU_ENUM_SUBLABEL_SERVICES_SETTINGS, MENU_ENUM_SUBLABEL_SHOW_HIDDEN_FILES,