GBA Hardware: Don't gate GBP features on not having an SIO driver installed

This commit is contained in:
Vicki Pfau 2020-10-14 23:15:35 -07:00
parent 73c8a343a5
commit d588aa47e6
1 changed files with 2 additions and 1 deletions

View File

@ -546,13 +546,14 @@ void GBAHardwarePlayerUpdate(struct GBA* gba) {
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);
}
}