From 0a5499cb1954243deb09a2c8cc61e8fd502653e3 Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:02:14 -0500 Subject: [PATCH] fix wrong "running" variable being updated during 16 bit main ram dmas this probably fixes something --- src/NDS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NDS.cpp b/src/NDS.cpp index 605c35c7..0ac01e60 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -1214,7 +1214,7 @@ void NDS::MainRAMHandleARM9() dma->IterCount--; dma->RemCount--; - if (burststart <= 1) Running = 1; + if (burststart <= 1) dma->Running = 1; else dma->Running = 2; DMA9Timestamp = (A9ContentionTS << ARM9ClockShift); @@ -1528,7 +1528,7 @@ void NDS::MainRAMHandleARM7() dma->IterCount--; dma->RemCount--; - if (burststart <= 1) Running = 1; + if (burststart <= 1) dma->Running = 1; else dma->Running = 2; memset(&ARM7.MRTrack, 0, sizeof(ARM7.MRTrack));