From 19990cde389aac999290483ee2f0070e28df9508 Mon Sep 17 00:00:00 2001 From: Zerocker Date: Sun, 24 May 2020 23:50:55 +0900 Subject: [PATCH] Secret Cheat was added --- include/text_options_strings.h.in | 8 ++++++++ include/text_strings.h.in | 2 +- src/game/options_menu.c | 9 ++++++++- src/pc/cheats.h | 4 ++++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/include/text_options_strings.h.in b/include/text_options_strings.h.in index 7580ec9e..92edd6b1 100644 --- a/include/text_options_strings.h.in +++ b/include/text_options_strings.h.in @@ -76,6 +76,10 @@ #define TEXT_OPT_CHEAT7 _("EXIT COURSE AT ANY TIME") #define TEXT_OPT_CHEAT8 _("HUGE MARIO") #define TEXT_OPT_CHEAT9 _("TINY MARIO") +#define TEXT_OPT_CHEAT10 _("UNKNOWN 1") +#define TEXT_OPT_CHEAT11 _("UNKNOWN 2") +#define TEXT_OPT_CHEAT12 _("UNKNOWN 3") +#define TEXT_OPT_CHEAT13 _("SUPER SECRET CHEAT") #else // VERSION @@ -132,6 +136,10 @@ #define TEXT_OPT_CHEAT7 _("Exit course at any time") #define TEXT_OPT_CHEAT8 _("Huge Mario") #define TEXT_OPT_CHEAT9 _("Tiny Mario") +#define TEXT_OPT_CHEAT10 _("Unknown 1") +#define TEXT_OPT_CHEAT11 _("Unknown 2") +#define TEXT_OPT_CHEAT12 _("Unknown 3") +#define TEXT_OPT_CHEAT13 _("Super Secret Cheat") #endif // VERSION diff --git a/include/text_strings.h.in b/include/text_strings.h.in index 786e3a36..a259af22 100644 --- a/include/text_strings.h.in +++ b/include/text_strings.h.in @@ -484,4 +484,4 @@ #define TEXT_MENU_STARS_DE _(" GEHEIME STERNE") #endif -#endif +#endif \ No newline at end of file diff --git a/src/game/options_menu.c b/src/game/options_menu.c index 8d1661bf..b2b30583 100644 --- a/src/game/options_menu.c +++ b/src/game/options_menu.c @@ -96,6 +96,10 @@ static const u8 optsCheatsStr[][64] = { { TEXT_OPT_CHEAT7 }, { TEXT_OPT_CHEAT8 }, { TEXT_OPT_CHEAT9 }, + { TEXT_OPT_CHEAT10 }, + { TEXT_OPT_CHEAT11 }, + { TEXT_OPT_CHEAT12 }, + { TEXT_OPT_CHEAT13 }, }; static const u8 bindStr[][32] = { @@ -257,7 +261,10 @@ static struct Option optsCheats[] = { DEF_OPT_TOGGLE( optsCheatsStr[6], &Cheats.ExitAnywhere ), DEF_OPT_TOGGLE( optsCheatsStr[7], &Cheats.HugeMario ), DEF_OPT_TOGGLE( optsCheatsStr[8], &Cheats.TinyMario ), - + DEF_OPT_TOGGLE( optsCheatsStr[9], &Cheats.Unknown1 ), + DEF_OPT_TOGGLE( optsCheatsStr[10], &Cheats.Unknown2 ), + DEF_OPT_TOGGLE( optsCheatsStr[11], &Cheats.Unknown3 ), + DEF_OPT_TOGGLE( optsCheatsStr[12], &Cheats.DisableBLJ), }; /* submenu definitions */ diff --git a/src/pc/cheats.h b/src/pc/cheats.h index eaf71ab4..201925bd 100644 --- a/src/pc/cheats.h +++ b/src/pc/cheats.h @@ -13,6 +13,10 @@ struct CheatList { bool ExitAnywhere; bool HugeMario; bool TinyMario; + bool Unknown1; + bool Unknown2; + bool Unknown3; + bool DisableBLJ; }; extern struct CheatList Cheats;