Merge pull request #2598 from Jaizu/patch-1

Allow exiting the Battle Debug menu pressing B
This commit is contained in:
ghoulslash 2023-01-26 10:48:58 -05:00 committed by GitHub
commit 6b86a031f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1107,7 +1107,7 @@ static void Task_DebugMenuProcessInput(u8 taskId)
struct BattleDebugMenu *data = GetStructPtr(taskId);
// Exit the menu.
if (JOY_NEW(SELECT_BUTTON))
if (JOY_NEW(SELECT_BUTTON) || ((JOY_NEW(B_BUTTON)) && data->activeWindow == ACTIVE_WIN_MAIN))
{
BeginNormalPaletteFade(-1, 0, 0, 0x10, 0);
gTasks[taskId].func = Task_DebugMenuFadeOut;