2016-01-27 09:11:59 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include "SettingsPage.h"
|
|
|
|
#include "SettingsPage-Game-Recompiler.h"
|
|
|
|
|
|
|
|
CGameRecompilePage::CGameRecompilePage(HWND hParent, const RECT & rcDispay)
|
|
|
|
{
|
|
|
|
if (!Create(hParent, rcDispay))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-03-18 02:10:57 +00:00
|
|
|
// Set the text for all GUI items
|
2020-05-12 12:19:05 +00:00
|
|
|
SetDlgItemText(IDC_CPU_TYPE_TEXT, wGS(ROM_CPU_STYLE).c_str());
|
|
|
|
SetDlgItemText(IDC_FUNCFIND_TEXT, wGS(ROM_FUNC_FIND).c_str());
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2020-05-12 12:19:05 +00:00
|
|
|
SetDlgItemText(IDC_ROM_REGCACHE, wGS(ROM_REG_CACHE).c_str());
|
|
|
|
SetDlgItemText(IDC_BLOCK_LINKING, wGS(ADVANCE_ABL).c_str());
|
|
|
|
SetDlgItemText(IDC_ROM_FASTSP, wGS(ROM_FAST_SP).c_str());
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2020-05-12 12:19:05 +00:00
|
|
|
SetDlgItemText(IDC_SMM_FRAME, wGS(ADVANCE_SMCM).c_str());
|
|
|
|
SetDlgItemText(IDC_SMM_CACHE, wGS(ADVANCE_SMM_CACHE).c_str());
|
|
|
|
SetDlgItemText(IDC_SMM_DMA, wGS(ADVANCE_SMM_PIDMA).c_str());
|
|
|
|
SetDlgItemText(IDC_SMM_VALIDATE, wGS(ADVANCE_SMM_VALIDATE).c_str());
|
|
|
|
SetDlgItemText(IDC_SMM_TLB, wGS(ADVANCE_SMM_TLB).c_str());
|
|
|
|
SetDlgItemText(IDC_SMM_PROTECT, wGS(ADVANCE_SMM_PROTECT).c_str());
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
m_SelfModGroup.Attach(GetDlgItem(IDC_SMM_FRAME));
|
|
|
|
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_ROM_REGCACHE), Game_RegCache);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_BLOCK_LINKING), Game_BlockLinking);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_SMM_CACHE), Game_SMM_Cache);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_SMM_DMA), Game_SMM_PIDMA);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_SMM_VALIDATE), Game_SMM_ValidFunc);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_SMM_TLB), Game_SMM_TLB);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_SMM_PROTECT), Game_SMM_Protect);
|
2022-06-06 02:11:09 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_SMM_STORE), Game_SMM_StoreInstruc);
|
2016-01-27 09:11:59 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_ROM_FASTSP), Game_FastSP);
|
|
|
|
|
|
|
|
CModifiedComboBox * ComboBox;
|
|
|
|
ComboBox = AddModComboBox(GetDlgItem(IDC_CPU_TYPE), Game_CpuType);
|
|
|
|
if (ComboBox)
|
|
|
|
{
|
2020-05-12 12:19:05 +00:00
|
|
|
ComboBox->AddItem(wGS(CORE_RECOMPILER).c_str(), CPU_Recompiler);
|
|
|
|
ComboBox->AddItem(wGS(CORE_INTERPTER).c_str(), CPU_Interpreter);
|
2016-01-27 09:11:59 +00:00
|
|
|
if (g_Settings->LoadBool(Debugger_Enabled))
|
|
|
|
{
|
2020-05-12 12:19:05 +00:00
|
|
|
ComboBox->AddItem(wGS(CORE_SYNC).c_str(), CPU_SyncCores);
|
2016-01-27 09:11:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox = AddModComboBox(GetDlgItem(IDC_FUNCFIND), Game_FuncLookupMode);
|
|
|
|
if (ComboBox)
|
|
|
|
{
|
2020-05-12 12:19:05 +00:00
|
|
|
ComboBox->AddItem(wGS(FLM_PLOOKUP).c_str(), FuncFind_PhysicalLookup);
|
|
|
|
ComboBox->AddItem(wGS(FLM_VLOOKUP).c_str(), FuncFind_VirtualLookup);
|
2016-01-27 09:11:59 +00:00
|
|
|
//ComboBox->AddItem(wGS(FLM_CHANGEMEM).c_str(), FuncFind_ChangeMemory);
|
|
|
|
}
|
|
|
|
UpdatePageSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGameRecompilePage::ShowPage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_SHOW);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGameRecompilePage::HidePage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_HIDE);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGameRecompilePage::ApplySettings(bool UpdateScreen)
|
|
|
|
{
|
|
|
|
CSettingsPageImpl<CGameRecompilePage>::ApplySettings(UpdateScreen);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CGameRecompilePage::EnableReset(void)
|
|
|
|
{
|
|
|
|
if (CSettingsPageImpl<CGameRecompilePage>::EnableReset()) { return true; }
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGameRecompilePage::ResetPage()
|
|
|
|
{
|
|
|
|
CSettingsPageImpl<CGameRecompilePage>::ResetPage();
|
2021-03-18 02:10:57 +00:00
|
|
|
}
|