GBA: Fix DMA count register not being copied into savestate
Jeffrey Pfau jeffrey@endrift.com
Fri, 21 Nov 2014 00:40:30 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-io.c
→
src/gba/gba-io.c
@@ -455,6 +455,7 @@ }
} 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].nextDest = gba->memory.dma[i].nextDest; state->dma[i].nextCount = gba->memory.dma[i].nextCount;