2018-11-25 09:44:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CDefaultsOptionsPage :
|
2022-09-26 02:31:54 +00:00
|
|
|
public CSettingsPageImpl<CDefaultsOptionsPage>,
|
|
|
|
public CSettingsPage
|
2018-11-25 09:44:15 +00:00
|
|
|
{
|
2022-09-26 02:31:54 +00:00
|
|
|
BEGIN_MSG_MAP_EX(CDefaultsOptionsPage)
|
|
|
|
{
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_HLE_GFX, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_SYNC_AUDIO, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_ROM_FIXEDAUDIO, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_RANDOMIZE_SIPI_INTERRUPTS, CheckBoxChanged);
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_PROTECT_MEMORY, CheckBoxChanged);
|
2023-01-16 10:23:48 +00:00
|
|
|
COMMAND_HANDLER_EX(IDC_RDRAM_SIZE_KNOWN, LBN_SELCHANGE, ComboBoxChanged);
|
|
|
|
COMMAND_HANDLER_EX(IDC_RDRAM_SIZE_UNKNOWN, LBN_SELCHANGE, ComboBoxChanged);
|
2022-09-26 02:31:54 +00:00
|
|
|
COMMAND_HANDLER_EX(IDC_COUNTFACT, LBN_SELCHANGE, ComboBoxChanged);
|
|
|
|
COMMAND_HANDLER_EX(IDC_DISKSEEKTIMING, LBN_SELCHANGE, ComboBoxChanged);
|
|
|
|
COMMAND_HANDLER_EX(IDC_VIREFRESH, EN_UPDATE, EditBoxChanged);
|
|
|
|
COMMAND_HANDLER_EX(IDC_COUNTPERBYTE, EN_UPDATE, EditBoxChanged);
|
|
|
|
COMMAND_HANDLER_EX(IDC_RDRAM_SIZE, EN_UPDATE, EditBoxChanged);
|
|
|
|
}
|
|
|
|
END_MSG_MAP()
|
2018-11-25 09:44:15 +00:00
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IDD = IDD_Settings_Defaults
|
|
|
|
};
|
2018-11-25 09:44:15 +00:00
|
|
|
|
|
|
|
public:
|
2022-09-26 02:31:54 +00:00
|
|
|
CDefaultsOptionsPage(HWND hParent, const RECT & rcDispay);
|
2018-11-25 09:44:15 +00:00
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
LanguageStringID PageTitle(void)
|
|
|
|
{
|
|
|
|
return TAB_DEFAULTS;
|
|
|
|
}
|
|
|
|
void HidePage(void);
|
|
|
|
void ShowPage(void);
|
|
|
|
void ApplySettings(bool UpdateScreen);
|
|
|
|
bool EnableReset(void);
|
|
|
|
void ResetPage(void);
|
2018-11-25 09:44:15 +00:00
|
|
|
|
|
|
|
private:
|
2022-09-26 02:31:54 +00:00
|
|
|
void UpdatePageSettings(void);
|
2018-11-25 09:44:15 +00:00
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
bool m_InUpdateSettings;
|
2018-11-25 09:44:15 +00:00
|
|
|
};
|