This commit is contained in:
emmauss 2018-04-05 01:16:59 +03:00 committed by gdkchan
parent 21f6e3699e
commit 17d74d2643
8 changed files with 59 additions and 4 deletions

View file

@ -117,6 +117,13 @@ namespace Ryujinx.Core.OsHle.Svc
//TODO: Error codes.
}
private void SvcGetCurrentProcessorNumber(AThreadState ThreadState)
{
KThread CurrThread = Process.GetThread(ThreadState.Tpidr);
ThreadState.X0 = (ulong)CurrThread.ProcessorId;
}
private void SvcGetThreadId(AThreadState ThreadState)
{
int Handle = (int)ThreadState.X1;