From 655211651ad664c910b8264d6c3cb616d2ae1d75 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 11 Dec 2024 16:25:17 -0800 Subject: [PATCH] GBA Memory: Properly narrow down GPIO write validity check --- src/gba/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/memory.c b/src/gba/memory.c index 1561aef91..bdaf22c36 100644 --- a/src/gba/memory.c +++ b/src/gba/memory.c @@ -915,7 +915,7 @@ void GBAStore16(struct ARMCore* cpu, uint32_t address, int16_t value, int* cycle break; case GBA_REGION_ROM0: if (IS_GPIO_REGISTER(address & 0xFFFFFE)) { - if (memory->hw.devices == HW_NONE) { + if (!(memory->hw.devices & HW_GPIO)) { mLOG(GBA_HW, WARN, "Write to GPIO address %08X on cartridge without GPIO", address); break; }