summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-26 08:13:38 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-26 12:12:10 -0400
commitfb06e4a3c94ae17b73df6d3aecf2d18213aa183e (patch)
tree550586e95b1d117f9552213d94861c2ff8c318d4 /src/main.c
parent3f43523352b279fc4498ee4bfde2213504e3ece8 (diff)
Modernize code
Can compile with arm-none-eabi-gcc 8.3.0 gbafix correctly handles ELF input
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 40381bb68..d0c9ff7b4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -85,7 +85,7 @@ void EnableVCountIntrAtLine150(void);
void AgbMain()
{
- RegisterRamReset(RESET_ALL);
+ RegisterRamReset(MODERN ? RESET_ALL & ~RESET_IWRAM : RESET_ALL);
*(vu16 *)BG_PLTT = 0x7FFF;
InitGpuRegManager();
REG_WAITCNT = WAITCNT_PREFETCH_ENABLE | WAITCNT_WS0_S_1 | WAITCNT_WS0_N_3;