diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-06-26 01:26:21 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-06-26 01:26:21 -0300 |
| commit | b8be89ab2dad2e2ba5145f64425fa49526f81596 (patch) | |
| tree | 3f65781432634a29fe2f5b361b84e928664f5294 /Ryujinx.HLE/OsHle/Kernel/SvcThread.cs | |
| parent | 2f29894d9fed9ccabac4bb74ec9a58520599e647 (diff) | |
Relax GetThreadContext3 by allowing it to get the context of a running thread
Diffstat (limited to 'Ryujinx.HLE/OsHle/Kernel/SvcThread.cs')
| -rw-r--r-- | Ryujinx.HLE/OsHle/Kernel/SvcThread.cs | 9 |
1 files changed, 0 insertions, 9 deletions
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); |
