mirror of
https://github.com/libretro/mgba.git
synced 2024-11-24 08:30:30 +00:00
GB: SGB bug compat
This commit is contained in:
parent
77a89e52c9
commit
7c8d253123
@ -701,6 +701,9 @@ void GBVideoWriteSGBPacket(struct GBVideo* video, uint8_t* data) {
|
||||
case SGB_ATTR_SET:
|
||||
break;
|
||||
case SGB_MLT_REQ:
|
||||
if ((video->sgbPacketBuffer[1] & 0x3) == 2) { // XXX: This unmasked increment appears to be an SGB hardware bug
|
||||
++video->p->sgbCurrentController;
|
||||
}
|
||||
video->p->sgbControllers = video->sgbPacketBuffer[1] & 0x3;
|
||||
video->p->sgbCurrentController &= video->p->sgbControllers;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user