From f1bf8fcfdc4677ca1220fbbb3576a6d854287c71 Mon Sep 17 00:00:00 2001 From: BRODY MORAN Date: Tue, 11 Oct 2022 01:14:16 +0000 Subject: [PATCH] Speed up saving some more. --- agbcc | 1 - data/text/save.inc | 3 --- include/save.h | 2 +- include/strings.h | 1 - src/start_menu.c | 2 +- 5 files changed, 2 insertions(+), 7 deletions(-) delete mode 160000 agbcc diff --git a/agbcc b/agbcc deleted file mode 160000 index d59cfb5..0000000 --- a/agbcc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d59cfb5ac1ce13d4bc9875ffef1666b118338d33 diff --git a/data/text/save.inc b/data/text/save.inc index eb1c686..a359d46 100644 --- a/data/text/save.inc +++ b/data/text/save.inc @@ -1,7 +1,4 @@ .align 2 -gText_ConfirmSave:: - .string "Would you like to save the game?$" - gText_AlreadySavedFile:: .string "u sus$" diff --git a/include/save.h b/include/save.h index 48c9896..e48a66f 100644 --- a/include/save.h +++ b/include/save.h @@ -2,7 +2,7 @@ #define GUARD_SAVE_H // Each 4 KiB flash sector contains 3968 bytes of actual data followed by a 128 byte footer. -// Only 12 bytes of the footer are used. +// Only 12 bytes of the footer are used, therefore we changed the params in tbld to allow for more data. #define SECTOR_DATA_SIZE 4084 #define SECTOR_FOOTER_SIZE 12 #define SECTOR_SIZE (SECTOR_DATA_SIZE + SECTOR_FOOTER_SIZE) diff --git a/include/strings.h b/include/strings.h index fcdbdae..158fb99 100644 --- a/include/strings.h +++ b/include/strings.h @@ -276,7 +276,6 @@ extern const u8 gText_MenuOptionOption[]; extern const u8 gText_MenuOptionExit[]; // save menu texts -extern const u8 gText_ConfirmSave[]; extern const u8 gText_DifferentSaveFile[]; extern const u8 gText_AlreadySavedFile[]; extern const u8 gText_SavingDontTurnOff[]; diff --git a/src/start_menu.c b/src/start_menu.c index 24db178..0c274df 100644 --- a/src/start_menu.c +++ b/src/start_menu.c @@ -961,7 +961,7 @@ static u8 SaveConfirmSaveCallback(void) } else { - ShowSaveMessage(gText_ConfirmSave, SaveYesNoCallback); + ShowSaveMessage(SaveYesNoCallback); } return SAVE_IN_PROGRESS;