Core: Add argmask for threadhacks to prevent crash.

Every HLEFunction should have an argmask.  Some asserts for shutdown
crashes someone was seeing when calling HLE funcs from a shutdown
function.
This commit is contained in:
Unknown W. Brackets committed 2020-03-22 23:33:05 -07:00
1 parent 56a1b6d03a
commit 9cb74691b6
3 files changed
+10 -8

No files matched your search

+1
View File
@@ -1514,6 +1514,7 @@ void __KernelWaitCurThread(WaitType type, SceUID waitID, u32 waitValue, u32 time
}
PSPThread *thread = __GetCurrentThread();
assert(thread != nullptr);
thread->nt.waitID = waitID;
thread->nt.waitType = type;
__KernelChangeThreadState(thread, ThreadStatus(THREADSTATUS_WAIT | (thread->nt.status & THREADSTATUS_SUSPEND)));