make it somewhat functional. move wifi socket bind setting to wifi settings dialog.

This commit is contained in:
Arisotura
2019-02-21 02:12:33 +01:00
parent 81eae0e3ea
commit 616f2b494b
3 changed files with 29 additions and 80 deletions

View File

@ -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)
{
Platform::MP_DeInit();
Platform::MP_Init();
GPU3D::SoftRenderer::SetupRenderThread();
}
else if (type == 1) // wifi settings
{
if (Wifi::MPInited)
{
Platform::MP_DeInit();
Platform::MP_Init();
}
}
EmuRunning = prevstatus;