EE/VU Panel: Remove unnecessary code

Removed some unneeded explicit calls of the enable function and also corrected the placement of braces on a function. ( do note that only the specific function at the file used a different placement of the braces)

Also fix the grayout behavior of SuperVU recompiler option when DISABLE_SVU is defined. (thanks to turtleli)
This commit is contained in:
Akash 2016-02-22 00:19:58 +05:30
parent 35f599833c
commit e1febf7ec1
1 changed files with 5 additions and 13 deletions

View File

@ -242,9 +242,8 @@ void Panels::CpuPanelEE::AppStatusEvent_OnSettingsApplied()
ApplyConfigToGui( *g_Conf );
}
void Panels::CpuPanelEE::ApplyConfigToGui( AppConfig& configToApply, int flags ){
m_panel_RecEE->Enable(true);
void Panels::CpuPanelEE::ApplyConfigToGui( AppConfig& configToApply, int flags )
{
const Pcsx2Config::RecompilerOptions& recOps( configToApply.EmuOptions.Cpu.Recompiler );
m_panel_RecEE->SetSelection( (int)recOps.EnableEE );
m_panel_RecIOP->SetSelection( (int)recOps.EnableIOP );
@ -295,17 +294,10 @@ void Panels::CpuPanelVU::AppStatusEvent_OnSettingsApplied()
void Panels::CpuPanelVU::ApplyConfigToGui( AppConfig& configToApply, int flags )
{
m_panel_VU0->Enable(true);
m_panel_VU1->Enable(true);
m_panel_VU0->EnableItem( 1, true);
#ifndef DISABLE_SVU
m_panel_VU0->EnableItem( 2, true);
#endif
m_panel_VU1->EnableItem( 1, true);
#ifndef DISABLE_SVU
m_panel_VU1->EnableItem( 2, true);
#ifdef DISABLE_SVU
m_panel_VU0->EnableItem( 2, false);
m_panel_VU1->EnableItem( 2, false);
#endif
Pcsx2Config::RecompilerOptions& recOps( configToApply.EmuOptions.Cpu.Recompiler );