mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Force disable a repeating DMA when it would repeat infinitely
This commit is contained in:
parent
7e4a79a93e
commit
882cd0dcf6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue