diff options
author | yenatch <yenatch@gmail.com> | 2017-05-23 21:21:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-23 21:21:59 -0400 |
commit | 9640df02dd8651d5b05cf3767f6c7e16a697db3b (patch) | |
tree | df7fed98e02c4113507f6994e615b8f8074dd69e /src/start_menu.c | |
parent | 21ffe2fa910ede21f0f18a3013ed8ba29c70011e (diff) | |
parent | 3f7d0a195afd90c182cd631e14f5acb5d29be34b (diff) |
Merge pull request #303 from marijnvdwerf/clean/includes
Clean/includes
Diffstat (limited to 'src/start_menu.c')
-rw-r--r-- | src/start_menu.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/start_menu.c b/src/start_menu.c index 8d7e50ea5..a3258bab1 100644 --- a/src/start_menu.c +++ b/src/start_menu.c @@ -21,6 +21,8 @@ #include "sound.h" #include "sprite.h" #include "string_util.h" +#include "strings.h" +#include "strings2.h" #include "task.h" #include "trainer_card.h" @@ -54,24 +56,11 @@ EWRAM_DATA static u8 sNumStartMenuActions = 0; EWRAM_DATA static u8 sCurrentStartMenuActions[10] = {0}; //Text strings -extern u8 gSystemText_Saving[]; extern u8 gSaveText_PlayerSavedTheGame[]; extern u8 gSaveText_DontTurnOff[]; -extern u8 gSystemText_SaveErrorExchangeBackup[]; extern u8 gSaveText_ThereIsAlreadyAFile[]; extern u8 gSaveText_ThereIsADifferentFile[]; extern u8 gSaveText_WouldYouLikeToSave[]; -extern u8 gOtherText_SafariStock[]; -extern u8 SystemText_Pokedex[]; -extern u8 SystemText_Pokemon[]; -extern u8 SystemText_BAG[]; -extern u8 SystemText_Pokenav[]; -extern u8 SystemText_Player[]; -extern u8 SystemText_Save[]; -extern u8 SystemText_Option[]; -extern u8 SystemText_Exit[]; -extern u8 SystemText_Retire[]; -extern u8 SystemText_Player[]; static u8 StartMenu_PokedexCallback(void); static u8 StartMenu_PokemonCallback(void); @@ -113,7 +102,7 @@ static u8 SaveCallback1(void); static u8 SaveCallback2(void); static void sub_807160C(void); static u8 RunSaveDialogCallback(void); -static void DisplaySaveMessageWithCallback(u8 *ptr, u8 (*func)(void)); +static void DisplaySaveMessageWithCallback(const u8 *ptr, u8 (*func)(void)); static void Task_SaveDialog(u8 taskId); static void sub_8071700(void); static void HideSaveDialog(void); @@ -517,7 +506,7 @@ void InitSaveDialog(void) CreateTask(Task_SaveDialog, 0x50); } -static void DisplaySaveMessageWithCallback(u8 *ptr, u8 (*func)(void)) +static void DisplaySaveMessageWithCallback(const u8 *ptr, u8 (*func)(void)) { StringExpandPlaceholders(gStringVar4, ptr); MenuDisplayMessageBox(); |