summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-02-06 17:38:46 +1300
committerGitHub <noreply@github.com>2017-02-06 17:38:46 +1300
commitd022913fb36854cc47bf4f8852881e1344c5afc6 (patch)
tree501110e36b1d34337b5cba33dd1bbc5db1030100 /Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
parent3cc4c02c5b30d81e17bad2b5e996d3c5b029d951 (diff)
parente07383a783848b961cee6e46276340ac4494598a (diff)
Merge pull request #4828 from lioncash/state
Core: Convert State enum into an enum class
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
index 9704a4f362..44e0c51349 100644
--- a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp
@@ -123,17 +123,17 @@ void CCodeWindow::OnProfilerMenu(wxCommandEvent& event)
switch (event.GetId())
{
case IDM_PROFILE_BLOCKS:
- Core::SetState(Core::CORE_PAUSE);
+ Core::SetState(Core::State::Paused);
if (g_jit != nullptr)
g_jit->ClearCache();
Profiler::g_ProfileBlocks = GetParentMenuBar()->IsChecked(IDM_PROFILE_BLOCKS);
- Core::SetState(Core::CORE_RUN);
+ Core::SetState(Core::State::Running);
break;
case IDM_WRITE_PROFILE:
- if (Core::GetState() == Core::CORE_RUN)
- Core::SetState(Core::CORE_PAUSE);
+ if (Core::GetState() == Core::State::Running)
+ Core::SetState(Core::State::Paused);
- if (Core::GetState() == Core::CORE_PAUSE && PowerPC::GetMode() == PowerPC::CoreMode::JIT)
+ if (Core::GetState() == Core::State::Paused && PowerPC::GetMode() == PowerPC::CoreMode::JIT)
{
if (g_jit != nullptr)
{