GBA SIO: Prevent writing read-only multiplayer bits

This commit is contained in:
Vicki Pfau 2019-02-17 22:13:40 -08:00
parent 8a57f9489a
commit 830e52fa67
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Bugfixes:
- GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293) - GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293)
- Qt: Fix audio context holding onto closed game controller - Qt: Fix audio context holding onto closed game controller
- Switch: Fix gyroscope orientation (fixes mgba.io/i/1300) - Switch: Fix gyroscope orientation (fixes mgba.io/i/1300)
- GBA SIO: Prevent writing read-only multiplayer bits
Misc: Misc:
- GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1274) - GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1274)

View File

@ -164,6 +164,7 @@ void GBASIOWriteSIOCNT(struct GBASIO* sio, uint16_t value) {
} }
break; break;
case SIO_MULTI: case SIO_MULTI:
value &= 0xFF83;
value |= 0xC; value |= 0xC;
break; break;
default: default: