From 5d42332d75fb0427c04ce7fbcb6e8fd29450530b Mon Sep 17 00:00:00 2001 From: svc64 Date: Sat, 7 Oct 2023 10:33:06 +0300 Subject: [PATCH] Don't step when the thread is blocked --- src/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs b/src/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs index dcc992b710..1500a95450 100644 --- a/src/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs +++ b/src/Ryujinx.HLE/HOS/Kernel/Threading/KThread.cs @@ -1443,7 +1443,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading lock (_activityOperationLock) { if (_debugState != (int)DebugState.Stopped - || (_forcePauseFlags & ThreadSchedState.ThreadPauseFlag) == 0) + || (_forcePauseFlags & ThreadSchedState.ThreadPauseFlag) == 0 + || MutexOwner != null) { return false; }