mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
abandon pipelining on jit
fixes Golden Sun Dawn this makes the cpu state incompatible between interpreter and JIT. That's why switching cpu mode requires a restart(not requiring is stupid anyway) and the pipeline is manually filled when making a save state.
This commit is contained in:
@ -2355,6 +2355,14 @@ void OnSetShowOSD(uiMenuItem* item, uiWindow* window, void* blarg)
|
||||
|
||||
void ApplyNewSettings(int type)
|
||||
{
|
||||
#ifdef JIT_ENABLED
|
||||
if (type == 4)
|
||||
{
|
||||
Reset(NULL);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!RunningSomething)
|
||||
{
|
||||
if (type == 1) return;
|
||||
@ -2409,14 +2417,6 @@ void ApplyNewSettings(int type)
|
||||
GPU3D::InitRenderer(Screen_UseGL);
|
||||
if (Screen_UseGL) uiGLMakeContextCurrent(NULL);
|
||||
}
|
||||
else if (type == 4)
|
||||
{
|
||||
#ifdef JIT_ENABLED
|
||||
if (Config::JIT_Enable)
|
||||
ARMJIT::InvalidateBlockCache();
|
||||
#endif
|
||||
}
|
||||
|
||||
EmuRunning = prevstatus;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user