mirror of https://github.com/mgba-emu/mgba.git
GBA Serialize: Fix loading audio enable bit late (fixes #2230)
This commit is contained in:
parent
f14abdf749
commit
7dce4be2e2
1
CHANGES
1
CHANGES
|
@ -15,6 +15,7 @@ Emulation fixes:
|
||||||
- GBA SIO: Fix missing interrupt on an unattached NORMAL transfer
|
- GBA SIO: Fix missing interrupt on an unattached NORMAL transfer
|
||||||
- GBA SIO: Fix SI value for unattached MULTI mode
|
- GBA SIO: Fix SI value for unattached MULTI mode
|
||||||
- GBA Memory: Fix prefetch mask when swapping modes within a region
|
- GBA Memory: Fix prefetch mask when swapping modes within a region
|
||||||
|
- GBA Serialize: Fix loading audio enable bit late (fixes mgba.io/i/2230)
|
||||||
- GBA Video: Revert scanline latching changes (fixes mgba.io/i/2153, mgba.io/i/2149)
|
- GBA Video: Revert scanline latching changes (fixes mgba.io/i/2153, mgba.io/i/2149)
|
||||||
Other fixes:
|
Other fixes:
|
||||||
- 3DS: Fix disabling "wide" mode on 2DS (fixes mgba.io/i/2167)
|
- 3DS: Fix disabling "wide" mode on 2DS (fixes mgba.io/i/2167)
|
||||||
|
|
|
@ -973,6 +973,8 @@ void GBAIOSerialize(struct GBA* gba, struct GBASerializedState* state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GBAIODeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
void GBAIODeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
||||||
|
GBAAudioWriteSOUNDCNT_X(&gba->audio, state->io[REG_SOUNDCNT_X >> 1]);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < REG_MAX; i += 2) {
|
for (i = 0; i < REG_MAX; i += 2) {
|
||||||
if (_isWSpecialRegister[i >> 1]) {
|
if (_isWSpecialRegister[i >> 1]) {
|
||||||
|
@ -1003,7 +1005,6 @@ void GBAIODeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
||||||
LOAD_32(gba->memory.dma[i].nextCount, 0, &state->dma[i].nextCount);
|
LOAD_32(gba->memory.dma[i].nextCount, 0, &state->dma[i].nextCount);
|
||||||
LOAD_32(gba->memory.dma[i].when, 0, &state->dma[i].when);
|
LOAD_32(gba->memory.dma[i].when, 0, &state->dma[i].when);
|
||||||
}
|
}
|
||||||
GBAAudioWriteSOUNDCNT_X(&gba->audio, gba->memory.io[REG_SOUNDCNT_X >> 1]);
|
|
||||||
gba->sio.siocnt = gba->memory.io[REG_SIOCNT >> 1];
|
gba->sio.siocnt = gba->memory.io[REG_SIOCNT >> 1];
|
||||||
GBASIOWriteRCNT(&gba->sio, gba->memory.io[REG_RCNT >> 1]);
|
GBASIOWriteRCNT(&gba->sio, gba->memory.io[REG_RCNT >> 1]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue