mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 13:20:57 -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);
|
SPU.SetPowerCnt(PowerControl7 & 0x0001);
|
||||||
Wifi.SetPowerCnt(PowerControl7 & 0x0002);
|
Wifi.SetPowerCnt(PowerControl7 & 0x0002);
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef JIT_ENABLED
|
#ifdef JIT_ENABLED
|
||||||
if (!file->Saving)
|
JIT.Reset();
|
||||||
{
|
|
||||||
JIT.ResetBlockCache();
|
|
||||||
JIT.Memory.Reset();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
file->Finish();
|
file->Finish();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user