From eee242ee13997dd23bb49c885d4c6ea842c2e0bd Mon Sep 17 00:00:00 2001 From: Lordmau5 Date: Mon, 11 Jun 2018 01:55:57 +0200 Subject: [PATCH] Implement SvcGetThreadContext3 on SvcThread --- Ryujinx.Core/OsHle/Kernel/SvcHandler.cs | 3 ++- Ryujinx.Core/OsHle/Kernel/SvcThread.cs | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Core/OsHle/Kernel/SvcHandler.cs b/Ryujinx.Core/OsHle/Kernel/SvcHandler.cs index 70ed38533..67250d2eb 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcHandler.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcHandler.cs @@ -72,7 +72,8 @@ namespace Ryujinx.Core.OsHle.Kernel { 0x29, SvcGetInfo }, { 0x2c, SvcMapPhysicalMemory }, { 0x2d, SvcUnmapPhysicalMemory }, - { 0x32, SvcSetThreadActivity } + { 0x32, SvcSetThreadActivity }, + { 0x33, SvcGetThreadContext3 } }; this.Ns = Ns; diff --git a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs index c0d1bbd87..d0249052f 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs @@ -287,5 +287,15 @@ namespace Ryujinx.Core.OsHle.Kernel ThreadState.X0 = MakeError(ErrorModule.Kernel, KernelErr.InvalidHandle); } } + + private void SvcGetThreadContext3(AThreadState ThreadState) + { + int Handle = (int)ThreadState.X0; + long ThreadContext = (long)ThreadState.X1; + + Ns.Log.PrintStub(LogClass.KernelSvc, "Stubbed. - " + ThreadContext); + + ThreadState.X0 = 0; + } } } \ No newline at end of file