diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2018-02-06 19:45:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 19:45:56 -0600 |
commit | c79d259508d47a8b5bde5b9060b8fe8c6989bd44 (patch) | |
tree | 912c739848391da17525e57420570b3730053675 /src/scene/title_screen.c | |
parent | 5969695b8bbdab5182d0d651bbd2d256a12c0404 (diff) | |
parent | 9a8ec555e68fb143ffe900c778ddb85d5bd145a5 (diff) |
Merge pull request #541 from camthesaxman/german_debug
build German debug version
Diffstat (limited to 'src/scene/title_screen.c')
-rw-r--r-- | src/scene/title_screen.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/scene/title_screen.c b/src/scene/title_screen.c index 202b752a6..a1c8e081d 100644 --- a/src/scene/title_screen.c +++ b/src/scene/title_screen.c @@ -8,6 +8,7 @@ #include "m4a.h" #include "main.h" #include "main_menu.h" +#include "overworld.h" #include "palette.h" #include "reset_rtc_screen.h" #include "sound.h" @@ -353,6 +354,9 @@ static void Task_TitleScreenPhase1(u8); static void Task_TitleScreenPhase2(u8); static void Task_TitleScreenPhase3(u8); static void CB2_GoToMainMenu(void); +#if DEBUG +static void CB2_GoToTestMenu(void); +#endif static void CB2_GoToClearSaveDataScreen(void); static void CB2_GoToResetRtcScreen(void); static void CB2_GoToCopyrightScreen(void); @@ -829,6 +833,13 @@ static void Task_TitleScreenPhase3(u8 taskId) BeginNormalPaletteFade(-1, 0, 0, 0x10, 0); SetMainCallback2(CB2_GoToResetRtcScreen); } +#if DEBUG + else if (gMain.heldKeys == SELECT_BUTTON) + { + BeginNormalPaletteFade(-1, 0, 0, 16, 0); + SetMainCallback2(CB2_GoToTestMenu); + } +#endif else { REG_BG2Y = 0; @@ -855,6 +866,14 @@ static void CB2_GoToMainMenu(void) SetMainCallback2(CB2_InitMainMenu); } +#if DEBUG +static void CB2_GoToTestMenu(void) +{ + if (!UpdatePaletteFade()) + SetMainCallback2(CB2_InitTestMenu); +} +#endif + static void CB2_GoToCopyrightScreen(void) { if (!UpdatePaletteFade()) |