diff options
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r-- | src/libui_sdl/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index af05d7a..0066668 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -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; } |