From 90b27e758a936770cb94e88620b6896249da2dad Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 21 Nov 2014 00:40:30 -0800 Subject: [PATCH] GBA: Fix DMA count register not being copied into savestate --- src/gba/gba-io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/gba-io.c b/src/gba/gba-io.c index 644bad516..6401bd382 100644 --- a/src/gba/gba-io.c +++ b/src/gba/gba-io.c @@ -455,6 +455,7 @@ void GBAIOSerialize(struct GBA* gba, struct GBASerializedState* state) { } 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;