From 61236a6d34bd5ce36fedcf06a8d4f12ccaf4cf28 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Feb 2017 21:30:34 +0100 Subject: [PATCH] Add sublabels --- intl/msg_hash_us.h | 4 ++++ menu/cbs/menu_cbs_sublabel.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 368df5f7fc..dcb6a1ea09 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2906,3 +2906,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_CORE, "Save the current shader settings as the default settings for this application/core.") MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_GAME, "Save the current shader settings as the default settings for the content.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SHADER_PARAMETERS, + "Modifies current shader directly. Will not be saved to preset file.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_PARAMETERS, + "Modifies shader preset currently in menu.") diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index f687269d65..7da3012a7c 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -299,6 +299,8 @@ default_sublabel_macro(action_bind_sublabel_shader_preset, default_sublabel_macro(action_bind_sublabel_shader_preset_save_as, MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_AS) default_sublabel_macro(action_bind_sublabel_shader_preset_save_core, MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_CORE) default_sublabel_macro(action_bind_sublabel_shader_preset_save_game, MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_GAME) +default_sublabel_macro(action_bind_sublabel_shader_parameters, MENU_ENUM_SUBLABEL_VIDEO_SHADER_PARAMETERS) +default_sublabel_macro(action_bind_sublabel_shader_preset_parameters, MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_PARAMETERS) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -360,6 +362,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_parameters); + break; + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_preset_parameters); + break; case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_CORE: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_preset_save_core); break;