Merge pull request #2553 from AdmiralCurtiss/cpu-engine-selection-fix
Config: Fix incorrect array length detection for CPU Emulation Engine options.
This commit is contained in:
commit
82fa01804c
|
@ -99,7 +99,7 @@ void GeneralConfigPane::LoadGUIValues()
|
||||||
m_force_ntscj_checkbox->SetValue(startup_params.bForceNTSCJ);
|
m_force_ntscj_checkbox->SetValue(startup_params.bForceNTSCJ);
|
||||||
m_frame_limit_choice->SetSelection(SConfig::GetInstance().m_Framelimit);
|
m_frame_limit_choice->SetSelection(SConfig::GetInstance().m_Framelimit);
|
||||||
|
|
||||||
for (size_t i = 0; i < (sizeof(cpu_cores) / sizeof(CPUCore)); ++i)
|
for (size_t i = 0; i < cpu_cores.size(); ++i)
|
||||||
{
|
{
|
||||||
if (cpu_cores[i].CPUid == startup_params.iCPUCore)
|
if (cpu_cores[i].CPUid == startup_params.iCPUCore)
|
||||||
m_cpu_engine_radiobox->SetSelection(i);
|
m_cpu_engine_radiobox->SetSelection(i);
|
||||||
|
|
Loading…
Reference in New Issue