From b8be89ab2dad2e2ba5145f64425fa49526f81596 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 26 Jun 2018 01:26:21 -0300 Subject: Relax GetThreadContext3 by allowing it to get the context of a running thread --- Ryujinx.HLE/OsHle/Kernel/SvcThread.cs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Ryujinx.HLE/OsHle/Kernel/SvcThread.cs') diff --git a/Ryujinx.HLE/OsHle/Kernel/SvcThread.cs b/Ryujinx.HLE/OsHle/Kernel/SvcThread.cs index 543d9fd2..b0a7490a 100644 --- a/Ryujinx.HLE/OsHle/Kernel/SvcThread.cs +++ b/Ryujinx.HLE/OsHle/Kernel/SvcThread.cs @@ -306,15 +306,6 @@ namespace Ryujinx.HLE.OsHle.Kernel return; } - if (Process.Scheduler.IsThreadRunning(Thread)) - { - Ns.Log.PrintWarning(LogClass.KernelSvc, $"Thread handle 0x{Handle:x8} is running!"); - - ThreadState.X0 = MakeError(ErrorModule.Kernel, KernelErr.InvalidState); - - return; - } - Memory.WriteUInt64(Position + 0x0, ThreadState.X0); Memory.WriteUInt64(Position + 0x8, ThreadState.X1); Memory.WriteUInt64(Position + 0x10, ThreadState.X2); -- cgit v1.2.3