diff options
Diffstat (limited to 'Ryujinx.Core/OsHle/Kernel')
| -rw-r--r-- | Ryujinx.Core/OsHle/Kernel/SvcThread.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs index 1e4d61b4..e1300b73 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs @@ -156,13 +156,13 @@ namespace Ryujinx.Core.OsHle.Kernel private void SvcSetThreadActivity(AThreadState ThreadState) { int Handle = (int)ThreadState.X0; - bool Active = (int)ThreadState.X1 != 0; + bool Active = (int)ThreadState.X1 == 0; - KThread CurrThread = Process.HandleTable.GetData<KThread>(Handle); + KThread Thread = Process.HandleTable.GetData<KThread>(Handle); - if (CurrThread != null) + if (Thread != null) { - Process.Scheduler.SetThreadActivity(CurrThread, Active); + Process.Scheduler.SetThreadActivity(Thread, Active); ThreadState.X0 = 0; } |
