2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* 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"
|
2008-09-18 03:15:49 +00:00
|
|
|
#include "Settings Page.h"
|
|
|
|
#include "Settings Page - Game - Recompiler.h"
|
|
|
|
|
|
|
|
CGameRecompilePage::CGameRecompilePage (HWND hParent, const RECT & rcDispay )
|
|
|
|
{
|
2008-11-14 20:51:06 +00:00
|
|
|
if (!Create(hParent,rcDispay))
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-03-17 02:56:53 +00:00
|
|
|
//Set the text for all gui Items
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_CPU_TYPE_TEXT, GS(ROM_CPU_STYLE));
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_FUNCFIND_TEXT, GS(ROM_FUNC_FIND));
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_ROM_REGCACHE, GS(ROM_REG_CACHE));
|
|
|
|
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_SMM_CACHE, GS(ADVANCE_SMM_CACHE));
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_SMM_DMA, GS(ADVANCE_SMM_PIDMA));
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_SMM_VALIDATE, GS(ADVANCE_SMM_VALIDATE));
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_SMM_TLB, GS(ADVANCE_SMM_PROTECT));
|
|
|
|
SetDlgItemTextW(m_hWnd, IDC_SMM_PROTECT, GS(ADVANCE_SMM_TLB));
|
|
|
|
|
2008-11-14 20:51:06 +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);
|
2012-10-02 11:04:14 +00:00
|
|
|
::ShowWindow(GetDlgItem(IDC_SMM_STORE),SW_HIDE);
|
|
|
|
//AddModCheckBox(GetDlgItem(IDC_SMM_STORE),Game_SMM_StoreInstruc);
|
2010-07-23 10:45:35 +00:00
|
|
|
AddModCheckBox(GetDlgItem(IDC_ROM_FASTSP),Game_FastSP);
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
CModifiedComboBox * ComboBox;
|
|
|
|
ComboBox = AddModComboBox(GetDlgItem(IDC_CPU_TYPE),Game_CpuType);
|
|
|
|
if (ComboBox)
|
|
|
|
{
|
2015-03-04 09:36:08 +00:00
|
|
|
ComboBox->AddItemW(GS(CORE_RECOMPILER), CPU_Recompiler);
|
|
|
|
ComboBox->AddItemW(GS(CORE_INTERPTER), CPU_Interpreter);
|
2012-11-17 01:02:04 +00:00
|
|
|
if (g_Settings->LoadBool(Debugger_Enabled))
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
2015-03-04 09:36:08 +00:00
|
|
|
ComboBox->AddItemW(GS(CORE_SYNC), CPU_SyncCores);
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox = AddModComboBox(GetDlgItem(IDC_FUNCFIND),Game_FuncLookupMode);
|
|
|
|
if (ComboBox)
|
|
|
|
{
|
2015-03-04 09:36:08 +00:00
|
|
|
ComboBox->AddItemW(GS(FLM_PLOOKUP), FuncFind_PhysicalLookup);
|
|
|
|
ComboBox->AddItemW(GS(FLM_VLOOKUP), FuncFind_VirtualLookup);
|
2008-11-14 20:51:06 +00:00
|
|
|
//ComboBox->AddItem(GS(FLM_CHANGEMEM), FuncFind_ChangeMemory);
|
|
|
|
}
|
|
|
|
UpdatePageSettings();
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CGameRecompilePage::ShowPage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_SHOW);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGameRecompilePage::HidePage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_HIDE);
|
2008-11-14 20:51:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|