diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2021-06-28 09:45:36 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2021-06-28 09:45:36 -0400 |
commit | 1dc19be2c22ef5832742d44376435fc8669d3b02 (patch) | |
tree | e648d359f2156e9fdd12808d06eadd9055ae151f /src/intro.c | |
parent | 921a99ec5bc3a310d896a6a148294c04612ed354 (diff) |
Resolve ewram0arr in intro.c, ewram0_7 in egg_hatch.c
Diffstat (limited to 'src/intro.c')
-rw-r--r-- | src/intro.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intro.c b/src/intro.c index f0fda8862..5b4dc87dd 100644 --- a/src/intro.c +++ b/src/intro.c @@ -770,7 +770,7 @@ const struct SpritePalette gIntro3MiscPal_Table[] = // Game Freak probably used the raw address here. // Treating this like a u8 * causes the compiler // to remove it at link time. -const u32 unusedSharedMemPtr = (u32)gSharedMem; +u8 (*const ewram0arr)[32] = (u8 (*)[32])gSharedMem; static void MainCB2_EndIntro(void); void Task_IntroLoadPart1Graphics(u8); @@ -1212,8 +1212,6 @@ static void Task_IntroWaitToSetupPart3DoubleFight(u8 taskId) gTasks[taskId].func = Task_IntroLoadPart3Streaks; } -//extern u8 gSharedMem[][32]; - static void Task_IntroLoadPart3Streaks(u8 taskId) { u16 i; @@ -1225,7 +1223,7 @@ static void Task_IntroLoadPart3Streaks(u8 taskId) ewram0arr[1][i] = 17; ewram0arr[2][i] = 34; } - DmaCopy16Defvars(3, gSharedMem, (void *)(VRAM + 0x0), 0x60); + DmaCopy16Defvars(3, ewram0arr, (void *)(VRAM + 0x0), 0x60); for (i = 0; i < 0x280; i++) ((u16 *)(VRAM + 0x3000))[i] = 0xF001; for (i = 0; i < 0x80; i++) |