GBA: Fix DMA count register not being copied into savestate

This commit is contained in:
Jeffrey Pfau 2014-11-21 00:40:30 -08:00
parent 52b96e16f8
commit 90b27e758a
1 changed files with 1 additions and 0 deletions

View File

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