GBA Hardware: Don't gate GBP features on not having an SIO driver installed
Vicki Pfau vi@endrift.com
Wed, 14 Oct 2020 23:15:35 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/hardware.c
→
src/gba/hardware.c
@@ -546,13 +546,14 @@ }
gba->memory.hw.gbpTxPosition = 0; return; } - if (gba->keyCallback || gba->sio.drivers.normal) { + if (gba->keyCallback) { return; } if (GBAHardwarePlayerCheckScreen(&gba->video)) { gba->memory.hw.devices |= HW_GB_PLAYER; gba->memory.hw.gbpInputsPosted = 0; gba->keyCallback = &gba->memory.hw.gbpCallback.d; + // TODO: Check if the SIO driver is actually used first GBASIOSetDriver(&gba->sio, &gba->memory.hw.gbpDriver.d, SIO_NORMAL_32); } }