aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r--src/libui_sdl/main.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index 830751f..fcc0dd3 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -1659,7 +1659,7 @@ void OnSetLimitFPS(uiMenuItem* item, uiWindow* window, void* blarg)
else Config::LimitFPS = false;
}
-void ApplyNewSettings()
+void ApplyNewSettings(int type)
{
if (!RunningSomething) return;
@@ -1667,12 +1667,17 @@ void ApplyNewSettings()
EmuRunning = 2;
while (EmuStatus != 2);
- GPU3D::SoftRenderer::SetupRenderThread();
-
- if (Wifi::MPInited)
+ if (type == 0) // general emu settings)
+ {
+ GPU3D::SoftRenderer::SetupRenderThread();
+ }
+ else if (type == 1) // wifi settings
{
- Platform::MP_DeInit();
- Platform::MP_Init();
+ if (Wifi::MPInited)
+ {
+ Platform::MP_DeInit();
+ Platform::MP_Init();
+ }
}
EmuRunning = prevstatus;