all repos — mgba @ 6bb61bc67017c7f16678c4bb7f0e863997ca6457

mGBA Game Boy Advance Emulator

GBA Memory: Don't call into GPIO write calls if GPIO devices are absent
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Dec 2014 19:59:36 -0800
commit

6bb61bc67017c7f16678c4bb7f0e863997ca6457

parent

7c7af90b5c36e4d4c59997d82f2389653714ef0e

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -8,6 +8,7 @@ - Qt: Fix emulator crashing when full screen if a game is not running

- GBA Thread: Allow halted games to exit cleanly - GBA BIOS: Fix HLE Lz77 and RL functions to properly account for width and invalid addresses - ARM7: Fix LDM writeback to a register already written + - GBA Memory: Don't call into GPIO write calls if GPIO devices are absent Misc: - Qt: Disable sync to video by default
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -581,7 +581,7 @@ STORE_16(value, address & (SIZE_OAM - 1), gba->video.oam.raw);

gba->video.renderer->writeOAM(gba->video.renderer, (address & (SIZE_OAM - 1)) >> 1); break; case REGION_CART0: - if (IS_GPIO_REGISTER(address & 0xFFFFFF)) { + if (memory->gpio.gpioDevices != GPIO_NONE && IS_GPIO_REGISTER(address & 0xFFFFFF)) { uint32_t reg = address & 0xFFFFFF; GBAGPIOWrite(&memory->gpio, reg, value); } else {