aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-11-17 23:23:22 +0100
committerArisotura <thetotalworm@gmail.com>2021-11-17 23:23:22 +0100
commit65c2a844ac0c1d323a67044973860cdc0dcac953 (patch)
tree18cd29c94eaa59bb055f9dee1ff384e828cc2ff2
parente8bae0e1464af357f78e074ee62b66ad10f64b0f (diff)
oops
-rw-r--r--src/NDS.cpp4
-rw-r--r--src/NDS.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 4ad7aa7..287f120 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -80,7 +80,9 @@ u32 ARM7Regions[0x20000];
ARMv5* ARM9;
ARMv4* ARM7;
+#ifdef JIT_ENABLED
bool EnableJIT;
+#endif
u32 NumFrames;
u32 NumLagFrames;
@@ -479,7 +481,9 @@ void Reset()
FILE* f;
u32 i;
+#ifdef JIT_ENABLED
EnableJIT = Platform::GetConfigBool(Platform::JIT_Enable);
+#endif
RunningGame = false;
LastSysClockCycles = 0;
diff --git a/src/NDS.h b/src/NDS.h
index 526e735..29fc4ef 100644
--- a/src/NDS.h
+++ b/src/NDS.h
@@ -162,7 +162,9 @@ struct MemRegion
u32 Mask;
};
+#ifdef JIT_ENABLED
extern bool EnableJIT;
+#endif
extern int ConsoleType;
extern int CurCPU;