aboutsummaryrefslogtreecommitdiff
path: root/src/DMA.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DMA.h')
-rw-r--r--src/DMA.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/DMA.h b/src/DMA.h
index 17c075e..11ee1ad 100644
--- a/src/DMA.h
+++ b/src/DMA.h
@@ -34,6 +34,11 @@ public:
s32 Run(s32 cycles);
+ bool IsInMode(u32 mode)
+ {
+ return ((mode == StartMode) && (Cnt & 0x80000000));
+ }
+
void StartIfNeeded(u32 mode)
{
if ((mode == StartMode) && (Cnt & 0x80000000))