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