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

@ -27,7 +27,7 @@
#include "DlgEmuSettings.h"
void ApplyNewSettings();
void ApplyNewSettings(int type);
namespace DlgEmuSettings
@ -38,7 +38,6 @@ uiWindow* win;
uiCheckbox* cbDirectBoot;
uiCheckbox* cbThreaded3D;
uiCheckbox* cbBindAnyAddr;
int OnCloseWindow(uiWindow* window, void* blarg)
@ -57,14 +56,13 @@ void OnOk(uiButton* btn, void* blarg)
{
Config::DirectBoot = uiCheckboxChecked(cbDirectBoot);
Config::Threaded3D = uiCheckboxChecked(cbThreaded3D);
Config::SocketBindAnyAddr = uiCheckboxChecked(cbBindAnyAddr);
Config::Save();
uiControlDestroy(uiControl(win));
opened = false;
ApplyNewSettings();
ApplyNewSettings(0);
}
void Open()
@ -92,9 +90,6 @@ void Open()
cbThreaded3D = uiNewCheckbox("Threaded 3D renderer");
uiBoxAppend(in_ctrl, uiControl(cbThreaded3D), 0);
cbBindAnyAddr = uiNewCheckbox("Wifi: bind socket to any address");
uiBoxAppend(in_ctrl, uiControl(cbBindAnyAddr), 0);
}
{
@ -116,7 +111,6 @@ void Open()
uiCheckboxSetChecked(cbDirectBoot, Config::DirectBoot);
uiCheckboxSetChecked(cbThreaded3D, Config::Threaded3D);
uiCheckboxSetChecked(cbBindAnyAddr, Config::SocketBindAnyAddr);
uiControlShow(uiControl(win));
}