From 06200d422d962fa28a7977a2ee61ab557eceb155 Mon Sep 17 00:00:00 2001 From: BRODY MORAN Date: Tue, 11 Oct 2022 01:19:52 +0000 Subject: [PATCH] Revert "more oops" This reverts commit 2fd2705498fa3d5f93e5bb1b11cc817ea3a0309c. --- src/start_menu.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/start_menu.c b/src/start_menu.c index f878819..6184ff6 100644 --- a/src/start_menu.c +++ b/src/start_menu.c @@ -968,7 +968,40 @@ static u8 SaveConfirmSaveCallback(void) } static u8 SaveYesNoCallback(void) +{ return SAVE_IN_PROGRESS; +} + +static u8 SaveConfirmInputCallback(void) +{ + switch (Menu_ProcessInputNoWrapClearOnChoose()) + { + case 0: // Yes + switch (gSaveFileStatus) + { + case SAVE_STATUS_EMPTY: + case SAVE_STATUS_CORRUPT: + if (gDifferentSaveFile == FALSE) + { + sSaveDialogCallback = SaveFileExistsCallback; + return SAVE_IN_PROGRESS; + } + + sSaveDialogCallback = SaveSavingMessageCallback; + return SAVE_IN_PROGRESS; + default: + sSaveDialogCallback = SaveFileExistsCallback; + return SAVE_IN_PROGRESS; + } + case -1: // B Button + case 1: // No + HideSaveInfoWindow(); + HideSaveMessageWindow(); + return SAVE_CANCELED; + } + + return SAVE_IN_PROGRESS; +} // A different save file exists static u8 SaveFileExistsCallback(void)