mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix DMA count register not being copied into savestate
This commit is contained in:
parent
52b96e16f8
commit
90b27e758a
|
@ -455,6 +455,7 @@ void GBAIOSerialize(struct GBA* gba, struct GBASerializedState* state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 4; ++i) {
|
for (i = 0; i < 4; ++i) {
|
||||||
|
state->io[(REG_DMA0CNT_LO + i * 12) >> 1] = gba->memory.io[(REG_DMA0CNT_LO + i * 12) >> 1];
|
||||||
state->dma[i].nextSource = gba->memory.dma[i].nextSource;
|
state->dma[i].nextSource = gba->memory.dma[i].nextSource;
|
||||||
state->dma[i].nextDest = gba->memory.dma[i].nextDest;
|
state->dma[i].nextDest = gba->memory.dma[i].nextDest;
|
||||||
state->dma[i].nextCount = gba->memory.dma[i].nextCount;
|
state->dma[i].nextCount = gba->memory.dma[i].nextCount;
|
||||||
|
|
Loading…
Reference in New Issue