aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-03-26 18:39:52 +0100
committerArisotura <thetotalworm@gmail.com>2019-03-26 18:39:52 +0100
commit5d127f9e555faf227a7736f74ae579df6adee41a (patch)
tree1a68c93aecba264c663fd071dd8d6720ce7cd603
parent633fb0f555c29f19f6c7a875ee50f121a627ab12 (diff)
woops
-rw-r--r--src/NDSCart.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index 4266639..34e64df 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -1285,7 +1285,11 @@ u32 ReadROMData()
{
u32 xfercycle = (ROMCnt & (1<<27)) ? 8 : 5;
u32 delay = 4;
- if (!(DataOutPos & 0x1FF)) delay += ((ROMCnt >> 16) & 0x3F);
+ if (!(ROMCnt & (1<<30)))
+ {
+ if (!(DataOutPos & 0x1FF))
+ delay += ((ROMCnt >> 16) & 0x3F);
+ }
NDS::ScheduleEvent(NDS::Event_ROMTransfer, false, xfercycle*delay, ROMPrepareData, 0);
}