mirror of https://github.com/PCSX2/pcsx2.git
EE-Panel: gray out EE Cache when recompiler is set
This commit is contained in:
parent
ef9b8b792f
commit
35f599833c
|
@ -190,6 +190,7 @@ namespace Panels
|
|||
|
||||
protected:
|
||||
void OnRestoreDefaults( wxCommandEvent& evt );
|
||||
void EECache_Event( wxCommandEvent& evt );
|
||||
};
|
||||
|
||||
class CpuPanelVU : public BaseApplicableConfigPanel_SpecificConfig
|
||||
|
|
|
@ -171,6 +171,7 @@ Panels::CpuPanelEE::CpuPanelEE( wxWindow* parent )
|
|||
*this += m_button_RestoreDefaults | StdButton();
|
||||
|
||||
Connect( wxID_DEFAULT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CpuPanelEE::OnRestoreDefaults ) );
|
||||
Bind(wxEVT_COMMAND_RADIOBUTTON_SELECTED, &CpuPanelEE::EECache_Event, this);
|
||||
}
|
||||
|
||||
Panels::CpuPanelVU::CpuPanelVU( wxWindow* parent )
|
||||
|
@ -251,8 +252,9 @@ void Panels::CpuPanelEE::ApplyConfigToGui( AppConfig& configToApply, int flags )
|
|||
m_panel_RecEE->Enable(!configToApply.EnablePresets);
|
||||
m_panel_RecIOP->Enable(!configToApply.EnablePresets);
|
||||
|
||||
//EECache option is exclusive to the EE Interpreter.
|
||||
m_check_EECacheEnable->SetValue(recOps.EnableEECache);
|
||||
m_check_EECacheEnable->Enable(!configToApply.EnablePresets);
|
||||
m_check_EECacheEnable->Enable(!configToApply.EnablePresets && m_panel_RecEE->GetSelection() == 0);
|
||||
m_button_RestoreDefaults->Enable(!configToApply.EnablePresets);
|
||||
|
||||
if( flags & AppConfig::APPLY_FLAG_MANUALLY_PROPAGATE )
|
||||
|
@ -428,3 +430,9 @@ void Panels::AdvancedOptionsVU::ApplyConfigToGui( AppConfig& configToApply, int
|
|||
|
||||
this->Enable(!configToApply.EnablePresets);
|
||||
}
|
||||
|
||||
void Panels::CpuPanelEE::EECache_Event(wxCommandEvent& event)
|
||||
{
|
||||
m_check_EECacheEnable->Enable(m_panel_RecEE->GetSelection() == 0);
|
||||
event.Skip();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue