mirror of https://github.com/mgba-emu/mgba.git
GBA Hardware: Don't gate GBP features on not having an SIO driver installed
This commit is contained in:
parent
73c8a343a5
commit
d588aa47e6
|
@ -546,13 +546,14 @@ void GBAHardwarePlayerUpdate(struct GBA* gba) {
|
||||||
gba->memory.hw.gbpTxPosition = 0;
|
gba->memory.hw.gbpTxPosition = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (gba->keyCallback || gba->sio.drivers.normal) {
|
if (gba->keyCallback) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (GBAHardwarePlayerCheckScreen(&gba->video)) {
|
if (GBAHardwarePlayerCheckScreen(&gba->video)) {
|
||||||
gba->memory.hw.devices |= HW_GB_PLAYER;
|
gba->memory.hw.devices |= HW_GB_PLAYER;
|
||||||
gba->memory.hw.gbpInputsPosted = 0;
|
gba->memory.hw.gbpInputsPosted = 0;
|
||||||
gba->keyCallback = &gba->memory.hw.gbpCallback.d;
|
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);
|
GBASIOSetDriver(&gba->sio, &gba->memory.hw.gbpDriver.d, SIO_NORMAL_32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue