From a50239be3ba5d76e27872667cbc27ee1b77632db Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 1 Jul 2019 20:11:45 -0700 Subject: [PATCH] GBA: Set up GPIO mapping on null and ELF ROM regions (fixes #1481) --- CHANGES | 1 + src/gba/gba.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index c332c5594..dc7f0d3dd 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ Other fixes: - mGUI: Fix crash if last loaded ROM directory disappears (fixes mgba.io/i/1466) - Libretro: Fix crash changing allowing opposing directions (hhromic) - Qt: Fix race conditions initializing GDB stub + - GBA: Set up GPIO mapping on null and ELF ROM regions (fixes mgba.io/i/1481) Misc: - Qt: Make mute menu option also toggle fast-forward mute (fixes mgba.io/i/1424) - Qt: Show error message if file failed to load diff --git a/src/gba/gba.c b/src/gba/gba.c index 05a5aa715..e6ddd05ac 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -325,6 +325,7 @@ bool GBALoadNull(struct GBA* gba) { if (gba->cpu) { gba->cpu->memory.setActiveRegion(gba->cpu, gba->cpu->gprs[ARM_PC]); } + GBAHardwareInit(&gba->memory.hw, &((uint16_t*) gba->memory.rom)[GPIO_REG_DATA >> 1]); return true; }