GBA I/O: Update KEYINPUT in internal I/O memory (fixes #2235)

This commit is contained in:
Vicki Pfau 2021-10-14 01:46:55 -07:00
parent b4f4f2b0fa
commit 511a061ab0
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ Other fixes:
- Qt: Fix corrupted savestate and fatal error text - Qt: Fix corrupted savestate and fatal error text
Misc: Misc:
- Core: Suspend runloop when a core crashes - Core: Suspend runloop when a core crashes
- GBA I/O: Update KEYINPUT in internal I/O memory (fixes mgba.io/i/2235)
- mGUI: Add margin to right-aligned menu text (fixes mgba.io/i/871) - mGUI: Add margin to right-aligned menu text (fixes mgba.io/i/871)
- Qt: Rearrange menus some - Qt: Rearrange menus some
- Qt: Clean up cheats dialog - Qt: Clean up cheats dialog

View File

@ -763,8 +763,9 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
} }
} }
} }
return 0x3FF ^ input; gba->memory.io[address >> 1] = 0x3FF ^ input;
} }
break;
case REG_SIOCNT: case REG_SIOCNT:
return gba->sio.siocnt; return gba->sio.siocnt;
case REG_RCNT: case REG_RCNT: