GBA: Fix deserializing SOUNDCNT_X

This commit is contained in:
Jeffrey Pfau 2015-11-13 21:35:40 -08:00
parent 5e2e3864b7
commit f03b7b1141
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}