make stepping work again, it's impossible to use it without these changes

This commit is contained in:
Peter Tissen 2014-02-14 00:08:32 +01:00
parent 2b63888782
commit 11ba83738f
2 changed files with 9 additions and 9 deletions

View file

@ -96,21 +96,21 @@ bool CPUThread::Sync()
int CPUThread::ThreadStatus()
{
if(Emu.IsStopped() || IsStopped() || IsPaused())
if(Emu.IsStopped() || IsStopped() )
{
return CPUThread_Stopped;
}
if(TestDestroy())
{
return CPUThread_Break;
}
if(m_is_step)
if (m_is_step)
{
return CPUThread_Step;
}
if (TestDestroy())
{
return CPUThread_Break;
}
if(Emu.IsPaused() || Sync())
{
return CPUThread_Sleeping;