diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2022-03-05 11:43:58 +0100 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2022-03-05 19:09:49 +0100 |
| commit | d6bbbf2db6bd078a887138506bec5abcc36b3020 (patch) | |
| tree | ed21da6d5dcf2db20e4022830903b5ba19443c87 /src/title.c | |
| parent | d18fed1fb9d52eb8c4be311d3c55bf4d29893d93 (diff) | |
Improve LayerStruct
Diffstat (limited to 'src/title.c')
| -rw-r--r-- | src/title.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/title.c b/src/title.c index e878d784..f9c63410 100644 --- a/src/title.c +++ b/src/title.c @@ -16,6 +16,7 @@ #include "save.h" #include "area.h" #include "item.h" +#include "game.h" typedef struct { u8 filler0[0x4]; @@ -123,8 +124,8 @@ static const u8 unk[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, #endif static u32 AdvanceIntroSequence(u32 transition) { - gUnk_02032EC0.lastState = transition; - gMain.state = 2; + gUI.lastState = transition; + gMain.state = GAMETASK_MAIN; MemClear(&gIntroState, sizeof(gIntroState)); SetFade(7, 8); } @@ -134,18 +135,18 @@ void TitleTask(void) { switch (gMain.state) { case 0: MessageInitialize(); - MemClear(&gUnk_02032EC0, sizeof(gUnk_02032EC0)); + MemClear(&gUI, sizeof(gUI)); AdvanceIntroSequence(0); break; case 1: - sIntroSequenceHandlers[gUnk_02032EC0.lastState](); + sIntroSequenceHandlers[gUI.lastState](); break; case 2: if (gFadeControl.active) { return; } DispReset(1); - gMain.state = 1; + gMain.state = GAMETASK_INIT; break; } CopyOAM(); |
