2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2010-06-07 02:23:58 +00:00
|
|
|
#include "stdafx.h"
|
2015-09-07 19:47:44 +00:00
|
|
|
|
2015-12-04 06:49:31 +00:00
|
|
|
#include "SettingsPage.h"
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
CAdvancedOptionsPage::CAdvancedOptionsPage(HWND hParent, const RECT & rcDispay)
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
2015-12-23 20:04:36 +00:00
|
|
|
if (!Create(hParent, rcDispay))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2015-03-17 02:56:53 +00:00
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
//Set the text for all gui Items
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_START_ON_ROM_OPEN, wGS(ADVANCE_AUTO_START).c_str());
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_ZIP, wGS(ADVANCE_COMPRESS).c_str());
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_DEBUGGER, wGS(ADVANCE_DEBUGGER).c_str());
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_REMEMBER_CHEAT, wGS(OPTION_REMEMBER_CHEAT).c_str());
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_CHECK_RUNNING, wGS(OPTION_CHECK_RUNNING).c_str());
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_DISPLAY_FRAMERATE, wGS(OPTION_CHANGE_FR).c_str());
|
2015-03-17 02:56:53 +00:00
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_START_ON_ROM_OPEN), Setting_AutoStart);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_ZIP), Setting_AutoZipInstantSave);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_DEBUGGER), Debugger_Enabled);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_REMEMBER_CHEAT), Setting_RememberCheats);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_CHECK_RUNNING), Setting_CheckEmuRunning);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_DISPLAY_FRAMERATE), UserInterface_DisplayFrameRate);
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
CModifiedComboBox * ComboBox;
|
|
|
|
ComboBox = AddModComboBox(GetDlgItem(IDC_FRAME_DISPLAY_TYPE), UserInterface_FrameDisplayType);
|
|
|
|
if (ComboBox)
|
|
|
|
{
|
|
|
|
ComboBox->AddItemW(wGS(STR_FR_VIS).c_str(), FR_VIs);
|
|
|
|
ComboBox->AddItemW(wGS(STR_FR_DLS).c_str(), FR_DLs);
|
|
|
|
ComboBox->AddItemW(wGS(STR_FR_PERCENT).c_str(), FR_PERCENT);
|
|
|
|
}
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
UpdatePageSettings();
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::HidePage()
|
|
|
|
{
|
2015-12-23 20:04:36 +00:00
|
|
|
ShowWindow(SW_HIDE);
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::ShowPage()
|
|
|
|
{
|
2015-12-23 20:04:36 +00:00
|
|
|
ShowWindow(SW_SHOW);
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
void CAdvancedOptionsPage::ApplySettings(bool UpdateScreen)
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
2015-12-23 20:04:36 +00:00
|
|
|
CSettingsPageImpl<CAdvancedOptionsPage>::ApplySettings(UpdateScreen);
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
bool CAdvancedOptionsPage::EnableReset(void)
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
2015-12-23 20:04:36 +00:00
|
|
|
if (CSettingsPageImpl<CAdvancedOptionsPage>::EnableReset()) { return true; }
|
|
|
|
return false;
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CAdvancedOptionsPage::ResetPage()
|
|
|
|
{
|
2015-12-23 20:04:36 +00:00
|
|
|
CSettingsPageImpl<CAdvancedOptionsPage>::ResetPage();
|
2015-11-07 01:11:25 +00:00
|
|
|
}
|