GBA Memory: Force disable a repeating DMA when it would repeat infinitely

This commit is contained in:
Jeffrey Pfau 2014-12-10 06:44:39 -08:00
parent 5b41141b02
commit 6d23328bda
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ void GBAMemoryServiceDMA(struct GBA* gba, int number, struct GBADMA* info) {
}
if (!wordsRemaining) {
if (!GBADMARegisterIsRepeat(info->reg)) {
if (!GBADMARegisterIsRepeat(info->reg) || GBADMARegisterGetTiming(info->reg) == DMA_TIMING_NOW) {
info->reg = GBADMARegisterClearEnable(info->reg);
info->nextEvent = INT_MAX;