2016-01-27 09:11:59 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include "SettingsPage.h"
|
|
|
|
|
|
|
|
CAdvancedOptionsPage::CAdvancedOptionsPage(HWND hParent, const RECT & rcDispay)
|
|
|
|
{
|
|
|
|
if (!Create(hParent, rcDispay))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-03-18 02:07:05 +00:00
|
|
|
// Set the text for all GUI items
|
2020-05-12 12:19:05 +00:00
|
|
|
SetDlgItemText(IDC_START_ON_ROM_OPEN, wGS(ADVANCE_AUTO_START).c_str());
|
|
|
|
SetDlgItemText(IDC_ZIP, wGS(ADVANCE_COMPRESS).c_str());
|
|
|
|
SetDlgItemText(IDC_DEBUGGER, wGS(ADVANCE_DEBUGGER).c_str());
|
|
|
|
SetDlgItemText(IDC_REMEMBER_CHEAT, wGS(OPTION_REMEMBER_CHEAT).c_str());
|
|
|
|
SetDlgItemText(IDC_UNIQUE_SAVE_DIR, wGS(OPTION_UNIQUE_SAVE_DIR).c_str());
|
|
|
|
SetDlgItemText(IDC_CHECK_RUNNING, wGS(OPTION_CHECK_RUNNING).c_str());
|
2021-02-02 02:52:47 +00:00
|
|
|
SetDlgItemText(IDC_ENABLE_ENHANCEMENTS, wGS(OPTION_ENABLE_ENHANCEMENTS).c_str());
|
2020-05-12 12:19:05 +00:00
|
|
|
SetDlgItemText(IDC_DISPLAY_FRAMERATE, wGS(OPTION_CHANGE_FR).c_str());
|
2021-03-18 00:32:37 +00:00
|
|
|
SetDlgItemText(IDC_SHOW_STATUS_BAR, wGS(OPTION_SHOW_STATUS_BAR).c_str());
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_START_ON_ROM_OPEN), Setting_AutoStart);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_ZIP), Setting_AutoZipInstantSave);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_DEBUGGER), Debugger_Enabled);
|
2017-08-18 05:08:22 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_INTERPRETER), Setting_ForceInterpreterCPU);
|
2016-01-27 09:11:59 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_REMEMBER_CHEAT), Setting_RememberCheats);
|
2016-04-21 20:29:55 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_UNIQUE_SAVE_DIR), Setting_UniqueSaveDir);
|
2016-01-27 09:11:59 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_CHECK_RUNNING), Setting_CheckEmuRunning);
|
2021-02-02 02:52:47 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_ENABLE_ENHANCEMENTS), Setting_Enhancement);
|
2016-01-27 09:11:59 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_DISPLAY_FRAMERATE), UserInterface_DisplayFrameRate);
|
2021-03-18 00:32:37 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_SHOW_STATUS_BAR), (SettingID)UserInterface_ShowStatusBar);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
CModifiedComboBox * ComboBox;
|
|
|
|
ComboBox = AddModComboBox(GetDlgItem(IDC_FRAME_DISPLAY_TYPE), UserInterface_FrameDisplayType);
|
|
|
|
if (ComboBox)
|
|
|
|
{
|
2020-05-12 12:19:05 +00:00
|
|
|
ComboBox->AddItem(wGS(STR_FR_VIS).c_str(), FR_VIs);
|
|
|
|
ComboBox->AddItem(wGS(STR_FR_DLS).c_str(), FR_DLs);
|
|
|
|
ComboBox->AddItem(wGS(STR_FR_PERCENT).c_str(), FR_PERCENT);
|
|
|
|
ComboBox->AddItem(wGS(STR_FR_DLS_VIS).c_str(), FR_VIs_DLs);
|
2018-12-20 05:38:26 +00:00
|
|
|
}
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
UpdatePageSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::HidePage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_HIDE);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::ShowPage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_SHOW);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::ApplySettings(bool UpdateScreen)
|
|
|
|
{
|
|
|
|
CSettingsPageImpl<CAdvancedOptionsPage>::ApplySettings(UpdateScreen);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CAdvancedOptionsPage::EnableReset(void)
|
|
|
|
{
|
|
|
|
if (CSettingsPageImpl<CAdvancedOptionsPage>::EnableReset()) { return true; }
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::ResetPage()
|
|
|
|
{
|
|
|
|
CSettingsPageImpl<CAdvancedOptionsPage>::ResetPage();
|
2016-06-05 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::UpdatePageSettings(void)
|
|
|
|
{
|
|
|
|
m_InUpdateSettings = true;
|
|
|
|
CSettingsPageImpl<CAdvancedOptionsPage>::UpdatePageSettings();
|
|
|
|
m_InUpdateSettings = false;
|
|
|
|
}
|