mirror of https://github.com/mgba-emu/mgba.git
GB IO: Read back current bank when switching banks
This commit is contained in:
parent
6a05ecf273
commit
9d4ffb3e43
|
@ -346,6 +346,7 @@ void GBIOWrite(struct GB* gb, unsigned address, uint8_t value) {
|
|||
break;
|
||||
case REG_SVBK:
|
||||
GBMemorySwitchWramBank(&gb->memory, value);
|
||||
value = gb->memory.wramCurrentBank;
|
||||
break;
|
||||
default:
|
||||
goto failed;
|
||||
|
|
Loading…
Reference in New Issue