decouple JIT from Config. bahahahahah

This commit is contained in:
Arisotura
2021-11-17 18:15:50 +01:00
parent 53dfcfb18a
commit c1dcd585be
13 changed files with 104 additions and 72 deletions

View File

@ -80,6 +80,8 @@ u32 ARM7Regions[0x20000];
ARMv5* ARM9;
ARMv4* ARM7;
bool EnableJIT;
u32 NumFrames;
u32 NumLagFrames;
bool LagFrameFlag;
@ -477,6 +479,8 @@ void Reset()
FILE* f;
u32 i;
EnableJIT = Platform::GetConfigBool(Platform::JIT_Enable);
RunningGame = false;
LastSysClockCycles = 0;
@ -1103,7 +1107,7 @@ u32 RunFrame()
u32 RunFrame()
{
#ifdef JIT_ENABLED
if (Config::JIT_Enable)
if (EnableJIT)
return NDS::ConsoleType == 1
? RunFrame<true, 1>()
: RunFrame<true, 0>();