summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-02-07 09:14:22 +1300
committerGitHub <noreply@github.com>2017-02-07 09:14:22 +1300
commit2835cfde52c800805bfcb4de4c1fa0ee147e3d1d (patch)
treea666c065137a4d5365d2660638869e8c48af097a /Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp
parent0c7d9bbb73e77fb00e02eea3970389d8f449a7aa (diff)
parent063e4df5a19412e322b668c68004ab97b8ef5906 (diff)
Merge pull request #4836 from lioncash/enum
DSPCore: Convert the DSPCoreState enum into an enum class
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp b/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp
index 1777cc531a..922fd3c0c7 100644
--- a/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp
+++ b/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp
@@ -115,22 +115,22 @@ DSPDebuggerLLE::~DSPDebuggerLLE()
void DSPDebuggerLLE::OnChangeState(wxCommandEvent& event)
{
- const DSP::DSPCoreState dsp_state = DSP::DSPCore_GetState();
+ const DSP::State dsp_state = DSP::DSPCore_GetState();
- if (dsp_state == DSP::DSPCORE_STOP)
+ if (dsp_state == DSP::State::Stopped)
return;
switch (event.GetId())
{
case ID_RUNTOOL:
- if (dsp_state == DSP::DSPCORE_RUNNING)
- DSP::DSPCore_SetState(DSP::DSPCORE_STEPPING);
+ if (dsp_state == DSP::State::Running)
+ DSP::DSPCore_SetState(DSP::State::Stepping);
else
- DSP::DSPCore_SetState(DSP::DSPCORE_RUNNING);
+ DSP::DSPCore_SetState(DSP::State::Running);
break;
case ID_STEPTOOL:
- if (dsp_state == DSP::DSPCORE_STEPPING)
+ if (dsp_state == DSP::State::Stepping)
{
DSP::DSPCore_Step();
Repopulate();
@@ -175,7 +175,7 @@ void DSPDebuggerLLE::FocusOnPC()
void DSPDebuggerLLE::UpdateState()
{
- if (DSP::DSPCore_GetState() == DSP::DSPCORE_RUNNING)
+ if (DSP::DSPCore_GetState() == DSP::State::Running)
{
m_Toolbar->SetToolLabel(ID_RUNTOOL, _("Pause"));
m_Toolbar->SetToolBitmap(