aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 12cd8a5..28d459d 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -804,14 +804,18 @@ u32 RunFrame()
ndscyclestorun = ARM9->Cycles >> 1;
}
+ RunTimingCriticalDevices(0, ndscyclestorun);
+
if (CPUStop & 0x0FFF0000)
{
s32 cycles = ndscyclestorun - ARM7Offset;
+ s32 critcycles = cycles;
cycles = DMAs[4]->Run(cycles);
if (cycles > 0) cycles = DMAs[5]->Run(cycles);
if (cycles > 0) cycles = DMAs[6]->Run(cycles);
if (cycles > 0) cycles = DMAs[7]->Run(cycles);
ARM7Offset = -cycles;
+ RunTimingCriticalDevices(1, critcycles);
}
else
{