mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Don't call into GPIO write calls if GPIO devices are absent
This commit is contained in:
parent
ded128e283
commit
0479078628
1
CHANGES
1
CHANGES
|
@ -5,6 +5,7 @@ Bugfixes:
|
||||||
- GBA Thread: Allow halted games to exit cleanly
|
- GBA Thread: Allow halted games to exit cleanly
|
||||||
- GBA BIOS: Fix HLE Lz77 and RL functions to properly account for width and invalid addresses
|
- 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
|
- ARM7: Fix LDM writeback to a register already written
|
||||||
|
- GBA Memory: Don't call into GPIO write calls if GPIO devices are absent
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Disable sync to video by default
|
- Qt: Disable sync to video by default
|
||||||
|
|
||||||
|
|
|
@ -581,7 +581,7 @@ void GBAStore16(struct ARMCore* cpu, uint32_t address, int16_t value, int* cycle
|
||||||
gba->video.renderer->writeOAM(gba->video.renderer, (address & (SIZE_OAM - 1)) >> 1);
|
gba->video.renderer->writeOAM(gba->video.renderer, (address & (SIZE_OAM - 1)) >> 1);
|
||||||
break;
|
break;
|
||||||
case REGION_CART0:
|
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;
|
uint32_t reg = address & 0xFFFFFF;
|
||||||
GBAGPIOWrite(&memory->gpio, reg, value);
|
GBAGPIOWrite(&memory->gpio, reg, value);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue