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:
parent
56a1b6d03a
commit
9cb74691b6
3 changed files with 10 additions and 8 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue