all repos — mgba @ 90b27e758a936770cb94e88620b6896249da2dad

mGBA Game Boy Advance Emulator

GBA: Fix DMA count register not being copied into savestate
Jeffrey Pfau jeffrey@endrift.com
Fri, 21 Nov 2014 00:40:30 -0800
commit

90b27e758a936770cb94e88620b6896249da2dad

parent

52b96e16f8f8c0829b75a819fac611964634f17c

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-io.csrc/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;