From 183d722b5687fed47eeb1d3157585ce0887461cb Mon Sep 17 00:00:00 2001 From: Sven <40953353+RetroSven@users.noreply.github.com> Date: Sun, 30 Sep 2018 10:22:28 -0400 Subject: [PATCH] add sublabels to the new cheat options --- intl/msg_hash_us.c | 12 ++++++++++++ intl/msg_hash_us.h | 12 ++++++++++++ menu/cbs/menu_cbs_sublabel.c | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 833aee1915..a3799a3a80 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -1970,6 +1970,18 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len) snprintf(s, len, "Address bitmask when Memory Search Size < 8-bit.\n"); break; + case MENU_ENUM_LABEL_CHEAT_REPEAT_COUNT: + snprintf(s, len, + "The number of times the cheat will be applied.\nUse with the other two Iteration options to affect large areas of memory."); + break; + case MENU_ENUM_LABEL_CHEAT_REPEAT_ADD_TO_ADDRESS: + snprintf(s, len, + "After each 'Number of Iterations' the Memory Address will be increased by this number times the 'Memory Search Size'."); + break; + case MENU_ENUM_LABEL_CHEAT_REPEAT_ADD_TO_VALUE: + snprintf(s, len, + "After each 'Number of Iterations' the Value will be increased by this amount."); + break; case MENU_ENUM_LABEL_CHEAT_MATCH_IDX: snprintf(s, len, "Select the match to view."); diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index d7d3416a11..a036c7ddf4 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -4915,6 +4915,18 @@ MSG_HASH( MENU_ENUM_SUBLABEL_CHEAT_APPLY_AFTER_LOAD, "Auto-apply cheats when game loads." ) +MSG_HASH( + MENU_ENUM_SUBLABEL_CHEAT_REPEAT_COUNT, + "The number of times the cheat will be applied. Use with the other two Iteration options to affect large areas of memory." + ) +MSG_HASH( + MENU_ENUM_SUBLABEL_CHEAT_REPEAT_ADD_TO_ADDRESS, + "After each 'Number of Iterations' the Memory Address will be increased by this number times the 'Memory Search Size'." +) +MSG_HASH( + MENU_ENUM_SUBLABEL_CHEAT_REPEAT_ADD_TO_VALUE, + "After each 'Number of Iterations' the Value will be increased by this amount." + ) MSG_HASH( MENU_ENUM_SUBLABEL_REWIND_GRANULARITY, "When rewinding a defined number of frames, you can rewind several frames at a time, increasing the rewind speed." diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 0d72663fef..244d25877e 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -232,6 +232,9 @@ default_sublabel_macro(action_bind_sublabel_cheat_search_eq, MENU_ default_sublabel_macro(action_bind_sublabel_cheat_search_neq, MENU_ENUM_SUBLABEL_CHEAT_SEARCH_NEQ) default_sublabel_macro(action_bind_sublabel_cheat_search_eqplus, MENU_ENUM_SUBLABEL_CHEAT_SEARCH_EQPLUS) default_sublabel_macro(action_bind_sublabel_cheat_search_eqminus, MENU_ENUM_SUBLABEL_CHEAT_SEARCH_EQMINUS) +default_sublabel_macro(action_bind_sublabel_cheat_repeat_count, MENU_ENUM_SUBLABEL_CHEAT_REPEAT_COUNT) +default_sublabel_macro(action_bind_sublabel_cheat_repeat_add_to_address, MENU_ENUM_SUBLABEL_CHEAT_REPEAT_ADD_TO_ADDRESS) +default_sublabel_macro(action_bind_sublabel_cheat_repeat_add_to_value, MENU_ENUM_SUBLABEL_CHEAT_REPEAT_ADD_TO_VALUE) default_sublabel_macro(action_bind_sublabel_cheat_add_matches, MENU_ENUM_SUBLABEL_CHEAT_ADD_MATCHES) default_sublabel_macro(action_bind_sublabel_cheat_view_matches, MENU_ENUM_SUBLABEL_CHEAT_VIEW_MATCHES) default_sublabel_macro(action_bind_sublabel_cheat_create_option, MENU_ENUM_SUBLABEL_CHEAT_CREATE_OPTION) @@ -1471,6 +1474,15 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_CHEAT_SEARCH_EQMINUS: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheat_search_eqminus); break; + case MENU_ENUM_LABEL_CHEAT_REPEAT_COUNT: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheat_repeat_count); + break; + case MENU_ENUM_LABEL_CHEAT_REPEAT_ADD_TO_ADDRESS: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheat_repeat_add_to_address); + break; + case MENU_ENUM_LABEL_CHEAT_REPEAT_ADD_TO_VALUE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheat_repeat_add_to_value); + break; case MENU_ENUM_LABEL_CHEAT_ADD_MATCHES: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheat_add_matches); break;