mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix deserializing SOUNDCNT_X
This commit is contained in:
parent
5e2e3864b7
commit
f03b7b1141
|
@ -291,7 +291,7 @@ static const int _isWSpecialRegister[REG_MAX >> 1] = {
|
|||
// Audio
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 1, 0, 0, 0, 0, 0,
|
||||
1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 0, 0, 0, 0,
|
||||
// DMA
|
||||
|
@ -874,6 +874,7 @@ void GBAIODeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
|||
gba->timersEnabled |= 1 << i;
|
||||
}
|
||||
}
|
||||
GBAAudioWriteSOUNDCNT_X(&gba->audio, gba->memory.io[REG_SOUNDCNT_X >> 1]);
|
||||
GBAMemoryUpdateDMAs(gba, 0);
|
||||
GBAHardwareDeserialize(&gba->memory.hw, state);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue