mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Fixes Issue 2004
This also mutes the sound when paused in Debug mode. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4825 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -490,13 +490,9 @@ void SetState(EState _State)
|
||||
break;
|
||||
case CORE_PAUSE:
|
||||
CCPU::EnableStepping(true); // Break
|
||||
CPluginManager::GetInstance().GetDSP()->DSP_ClearAudioBuffer();
|
||||
CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PAUSE);
|
||||
break;
|
||||
case CORE_RUN:
|
||||
CCPU::EnableStepping(false);
|
||||
CPluginManager::GetInstance().GetDSP()->DSP_ClearAudioBuffer();
|
||||
CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PLAY);
|
||||
break;
|
||||
default:
|
||||
PanicAlert("Invalid state");
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "Common.h"
|
||||
#include "Thread.h"
|
||||
|
||||
#include "../PluginManager.h"
|
||||
#include "../PowerPC/PowerPC.h"
|
||||
#include "../Host.h"
|
||||
#include "../Core.h"
|
||||
@ -117,12 +118,14 @@ void CCPU::EnableStepping(const bool _bStepping)
|
||||
PowerPC::Pause();
|
||||
// TODO(ector): why a sleep?
|
||||
Host_SetDebugMode(true);
|
||||
CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PAUSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
Host_SetDebugMode(false);
|
||||
PowerPC::Start();
|
||||
m_StepEvent.Set();
|
||||
CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PLAY);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user