diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 5790693c26..368df5f7fc 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2898,3 +2898,11 @@ MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SHADER_NUM_PASSES, "Increase or decrease the amount of shader pipeline passes. You can bind a separate shader to each pipeline pass and configure its scale and filtering." ) +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET, + "Load a shader preset. The shader pipeline will be automatically set-up.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SHADER_PRESET_SAVE_AS, + "Save the current shader settings as a new shader preset.") +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.") diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index d54a7d95e8..f687269d65 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -295,6 +295,10 @@ default_sublabel_macro(action_bind_sublabel_recording_config_directory, default_sublabel_macro(action_bind_sublabel_video_font_path, MENU_ENUM_SUBLABEL_VIDEO_FONT_PATH) default_sublabel_macro(action_bind_sublabel_shader_apply_changes, MENU_ENUM_SUBLABEL_SHADER_APPLY_CHANGES) default_sublabel_macro(action_bind_sublabel_shader_num_passes, MENU_ENUM_SUBLABEL_VIDEO_SHADER_NUM_PASSES) +default_sublabel_macro(action_bind_sublabel_shader_preset, MENU_ENUM_SUBLABEL_VIDEO_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) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -356,6 +360,18 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_CORE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_preset_save_core); + break; + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_GAME: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_preset_save_game); + break; + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_AS: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_preset_save_as); + break; + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_preset); + break; case MENU_ENUM_LABEL_VIDEO_SHADER_NUM_PASSES: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_num_passes); break; diff --git a/msg_hash.h b/msg_hash.h index 78504da176..c73d676756 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -381,7 +381,6 @@ enum msg_hash_enums MENU_LABEL(MENU_WALLPAPER_OPACITY), MENU_ENUM_LABEL_VALUE_CONFIG, - MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET, MENU_ENUM_LABEL_VALUE_OVERLAY, MENU_ENUM_LABEL_VALUE_AUTO, @@ -1247,8 +1246,8 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_SUPPORTED_CORES, MENU_ENUM_LABEL_VIDEO_SHADER_PASS, MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_TWO, - MENU_ENUM_LABEL_VIDEO_SHADER_PRESET, + MENU_LABEL(VIDEO_SHADER_PRESET), MENU_LABEL(CHEAT_FILE_LOAD), MENU_LABEL(REMAP_FILE_LOAD),