diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2018-06-15 19:52:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-15 19:52:06 +0200 |
| commit | 2b6d6c12bfd17875ac99da58ec14b0fcc3e8e750 (patch) | |
| tree | 63dc25f82fc19b5236219352fe8367e00b46dd55 /Source/Core/DolphinWX/Config/GeneralConfigPane.cpp | |
| parent | 58606702f77e0703851b25378ed7c6768c2f2571 (diff) | |
| parent | 6f473b96d0fc8341eadc34c61a2c552c20245975 (diff) | |
Merge pull request #7124 from lioncash/enum-class
PowerPC: Convert CPUCore enum into an enum class
Diffstat (limited to 'Source/Core/DolphinWX/Config/GeneralConfigPane.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Config/GeneralConfigPane.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp b/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp index 9083d514ac..da3f97f88f 100644 --- a/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp @@ -26,10 +26,10 @@ #include "DolphinWX/WxEventUtils.h" static const std::map<PowerPC::CPUCore, std::string> CPU_CORE_NAMES = { - {PowerPC::CORE_INTERPRETER, _trans("Interpreter (slowest)")}, - {PowerPC::CORE_CACHEDINTERPRETER, _trans("Cached Interpreter (slower)")}, - {PowerPC::CORE_JIT64, _trans("JIT Recompiler (recommended)")}, - {PowerPC::CORE_JITARM64, _trans("JIT Arm64 (experimental)")}, + {PowerPC::CPUCore::Interpreter, _trans("Interpreter (slowest)")}, + {PowerPC::CPUCore::CachedInterpreter, _trans("Cached Interpreter (slower)")}, + {PowerPC::CPUCore::JIT64, _trans("JIT Recompiler (recommended)")}, + {PowerPC::CPUCore::JITARM64, _trans("JIT Arm64 (experimental)")}, }; GeneralConfigPane::GeneralConfigPane(wxWindow* parent, wxWindowID id) : wxPanel(parent, id) @@ -156,7 +156,7 @@ void GeneralConfigPane::LoadGUIValues() const std::vector<PowerPC::CPUCore>& cpu_cores = PowerPC::AvailableCPUCores(); for (size_t i = 0; i < cpu_cores.size(); ++i) { - if (cpu_cores[i] == startup_params.iCPUCore) + if (cpu_cores[i] == startup_params.cpu_core) m_cpu_engine_radiobox->SetSelection(i); } } @@ -202,7 +202,7 @@ void GeneralConfigPane::OnThrottlerChoiceChanged(wxCommandEvent& event) void GeneralConfigPane::OnCPUEngineRadioBoxChanged(wxCommandEvent& event) { - SConfig::GetInstance().iCPUCore = PowerPC::AvailableCPUCores()[event.GetSelection()]; + SConfig::GetInstance().cpu_core = PowerPC::AvailableCPUCores()[event.GetSelection()]; } void GeneralConfigPane::OnAnalyticsCheckBoxChanged(wxCommandEvent& event) |
