diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index f6a538e1c8..ae1e9fb0ab 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -1604,6 +1604,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YES, "Yes") MSG_HASH(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_TWO, "Shader Preset") +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_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 5b91aea3c5..db3df7781b 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_cheevos_hardcore_mode_enable( + 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_CHEEVOS_HARDCORE_MODE_ENABLE), len); + return 0; +} + static int action_bind_sublabel_menu_settings_list( file_list_t *list, unsigned type, unsigned i, @@ -380,6 +390,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_CHEEVOS_LOCKED_ENTRY: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheevos_entry); break; + case MENU_ENUM_LABEL_CHEEVOS_HARDCORE_MODE_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheevos_hardcore_mode_enable); + break; case MENU_ENUM_LABEL_CONFIG_SAVE_ON_EXIT: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_config_save_on_exit); break; diff --git a/msg_hash.h b/msg_hash.h index 40747e8220..8550597cfa 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1946,6 +1946,7 @@ enum msg_hash_enums MENU_ENUM_LABEL_CB_CORE_UPDATER_DOWNLOAD, MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD, + MENU_ENUM_SUBLABEL_CHEEVOS_HARDCORE_MODE_ENABLE, MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC_FRAMES, MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO, MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX,