mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
Reset the JIT when loading savestate (#1937)
The effect of this change is simply to call JitEnableWrite(), which is necessary on apple silicon
This commit is contained in:
@ -713,15 +713,11 @@ bool NDS::DoSavestate(Savestate* file)
|
||||
|
||||
SPU.SetPowerCnt(PowerControl7 & 0x0001);
|
||||
Wifi.SetPowerCnt(PowerControl7 & 0x0002);
|
||||
}
|
||||
|
||||
#ifdef JIT_ENABLED
|
||||
if (!file->Saving)
|
||||
{
|
||||
JIT.ResetBlockCache();
|
||||
JIT.Memory.Reset();
|
||||
}
|
||||
JIT.Reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
file->Finish();
|
||||
|
||||
|
Reference in New Issue
Block a user