mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 02:23:05 +00:00
Fix the kill command, improve stepping
This commit is contained in:
parent
055ac70eaa
commit
13c53657cc
2 changed files with 4 additions and 4 deletions
|
@ -1247,10 +1247,10 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
|||
return false;
|
||||
}
|
||||
_parent.KernelContext.CriticalSection.Enter();
|
||||
bool wasPaused = (target.SchedFlags & ThreadSchedState.LowMask) == ThreadSchedState.Paused;
|
||||
bool waiting = target.MutexOwner != null || target.WaitingSync || target.WaitingInArbitration;
|
||||
target.Context.RequestDebugStep();
|
||||
target.Resume(ThreadSchedState.ThreadPauseFlag);
|
||||
if (wasPaused)
|
||||
if (waiting)
|
||||
{
|
||||
lock (_parent._threadingLock)
|
||||
{
|
||||
|
@ -1267,7 +1267,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
|||
|
||||
_parent.KernelContext.CriticalSection.Enter();
|
||||
target.Suspend(ThreadSchedState.ThreadPauseFlag);
|
||||
if (wasPaused)
|
||||
if (waiting)
|
||||
{
|
||||
lock (_parent._threadingLock)
|
||||
{
|
||||
|
|
|
@ -161,8 +161,8 @@ namespace Ryujinx.HLE
|
|||
AudioDeviceDriver.Dispose();
|
||||
FileSystem.Dispose();
|
||||
Memory.Dispose();
|
||||
Debugger.Dispose();
|
||||
ExitStatus.Set();
|
||||
Debugger.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue