Allow exiting the Battle Debug menu pressing B

This commit is contained in:
Jaizu 2023-01-26 16:36:33 +01:00 committed by GitHub
parent 0dc6b10909
commit d074daedbe
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;