Relax GetThreadContext3 by allowing it to get the context of a running thread

This commit is contained in:
gdkchan 2018-06-26 01:26:21 -03:00
parent 2f29894d9f
commit b8be89ab2d
3 changed files with 0 additions and 31 deletions

View file

@ -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);