Change Apply button from bool to Lresult
This commit is contained in:
parent
fd1a6112c0
commit
0c177171ea
|
@ -71,12 +71,12 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
g_settings->SetAudioEnabled(m_btnMute.GetCheck() != BST_CHECKED);
|
g_settings->SetAudioEnabled(m_btnMute.GetCheck() != BST_CHECKED);
|
||||||
g_settings->SetVolume(100 - m_Volume.GetPos());
|
g_settings->SetVolume(100 - m_Volume.GetPos());
|
||||||
FlushSettings();
|
FlushSettings();
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -117,11 +117,11 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
g_settings->SetBuffer(m_Buffer.GetPos());
|
g_settings->SetBuffer(m_Buffer.GetPos());
|
||||||
FlushSettings();
|
FlushSettings();
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -188,7 +188,7 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
struct {
|
struct {
|
||||||
CComboBox & cmb;
|
CComboBox & cmb;
|
||||||
|
@ -206,7 +206,7 @@ public:
|
||||||
SetSetting(TraceCMB[i].SettingId, TraceCMB[i].cmb.GetItemData(TraceCMB[i].cmb.GetCurSel()));
|
SetSetting(TraceCMB[i].SettingId, TraceCMB[i].cmb.GetItemData(TraceCMB[i].cmb.GetCurSel()));
|
||||||
}
|
}
|
||||||
FlushSettings();
|
FlushSettings();
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
BOOL OnInitDialog(CWindow /*wndFocus*/, LPARAM /*lInitParam*/);
|
BOOL OnInitDialog(CWindow /*wndFocus*/, LPARAM /*lInitParam*/);
|
||||||
HBRUSH OnCtlColorStatic(CDCHandle dc, CWindow wndStatic);
|
HBRUSH OnCtlColorStatic(CDCHandle dc, CWindow wndStatic);
|
||||||
void RemoveMapping(const BUTTON & Button);
|
void RemoveMapping(const BUTTON & Button);
|
||||||
bool OnApply();
|
LRESULT OnApply();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LRESULT OnScroll(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
LRESULT OnScroll(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
||||||
|
@ -163,7 +163,7 @@ HBRUSH CControllerSettings::OnCtlColorStatic(CDCHandle dc, CWindow wndStatic)
|
||||||
return ::GetSysColorBrush(COLOR_WINDOW);
|
return ::GetSysColorBrush(COLOR_WINDOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CControllerSettings::OnApply()
|
LRESULT CControllerSettings::OnApply()
|
||||||
{
|
{
|
||||||
N64CONTROLLER & Controller = g_InputPlugin->Controllers(m_ControllerNumber);
|
N64CONTROLLER & Controller = g_InputPlugin->Controllers(m_ControllerNumber);
|
||||||
Controller = m_Controller;
|
Controller = m_Controller;
|
||||||
|
@ -171,7 +171,7 @@ bool CControllerSettings::OnApply()
|
||||||
Controller.DeadZone = (uint8_t)m_DeadZone.GetPos();
|
Controller.DeadZone = (uint8_t)m_DeadZone.GetPos();
|
||||||
CONTROL & ControlInfo = g_InputPlugin->ControlInfo(m_ControllerNumber);
|
CONTROL & ControlInfo = g_InputPlugin->ControlInfo(m_ControllerNumber);
|
||||||
ControlInfo.Present = (m_PluggedIn.GetCheck() == BST_CHECKED) ? 1 : 0;
|
ControlInfo.Present = (m_PluggedIn.GetCheck() == BST_CHECKED) ? 1 : 0;
|
||||||
return g_InputPlugin->SaveController(m_ControllerNumber);
|
return g_InputPlugin->SaveController(m_ControllerNumber) ? PSNRET_NOERROR : PSNRET_INVALID_NOCHANGEPAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CControllerSettings::OnScroll(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
|
LRESULT CControllerSettings::OnScroll(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
|
||||||
|
|
|
@ -305,7 +305,7 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
wchar_t spinVRAM[100];
|
wchar_t spinVRAM[100];
|
||||||
m_spinVRAM.GetWindowText(spinVRAM, sizeof(spinVRAM));
|
m_spinVRAM.GetWindowText(spinVRAM, sizeof(spinVRAM));
|
||||||
|
@ -322,7 +322,7 @@ public:
|
||||||
g_settings->WriteSettings();
|
g_settings->WriteSettings();
|
||||||
}
|
}
|
||||||
m_options_page->UpdateTextureSettings();
|
m_options_page->UpdateTextureSettings();
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
void ItemChanged(UINT /*Code*/, int id, HWND /*ctl*/)
|
void ItemChanged(UINT /*Code*/, int id, HWND /*ctl*/)
|
||||||
|
@ -473,7 +473,7 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
g_settings->SetFiltering((CSettings::Filtering_t)m_cmbFiltering.GetItemData(m_cmbFiltering.GetCurSel()));
|
g_settings->SetFiltering((CSettings::Filtering_t)m_cmbFiltering.GetItemData(m_cmbFiltering.GetCurSel()));
|
||||||
g_settings->SetAspectmode((CSettings::AspectMode_t)m_cmbAspect.GetItemData(m_cmbAspect.GetCurSel()));
|
g_settings->SetAspectmode((CSettings::AspectMode_t)m_cmbAspect.GetItemData(m_cmbAspect.GetCurSel()));
|
||||||
|
@ -514,7 +514,7 @@ public:
|
||||||
{
|
{
|
||||||
g_settings->WriteSettings();
|
g_settings->WriteSettings();
|
||||||
}
|
}
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
void ItemChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
void ItemChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||||
|
@ -608,7 +608,7 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
struct {
|
struct {
|
||||||
CComboBox & cmb;
|
CComboBox & cmb;
|
||||||
|
@ -631,7 +631,7 @@ public:
|
||||||
{
|
{
|
||||||
SetSetting(TraceCMB[i].SettingId, TraceCMB[i].cmb.GetItemData(TraceCMB[i].cmb.GetCurSel()));
|
SetSetting(TraceCMB[i].SettingId, TraceCMB[i].cmb.GetItemData(TraceCMB[i].cmb.GetCurSel()));
|
||||||
}
|
}
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
void ItemChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
void ItemChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||||
|
@ -770,7 +770,7 @@ public:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnApply()
|
LRESULT OnApply()
|
||||||
{
|
{
|
||||||
wchar_t texcache[100];
|
wchar_t texcache[100];
|
||||||
m_textTexCache.GetWindowText(texcache, sizeof(texcache));
|
m_textTexCache.GetWindowText(texcache, sizeof(texcache));
|
||||||
|
@ -795,7 +795,7 @@ public:
|
||||||
{
|
{
|
||||||
g_settings->WriteSettings();
|
g_settings->WriteSettings();
|
||||||
}
|
}
|
||||||
return true;
|
return PSNRET_NOERROR;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
void ItemChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
void ItemChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||||
|
|
Loading…
Reference in New Issue