mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 15:30:29 +02:00
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:
1 parent
56a1b6d03a
commit
9cb74691b6
3 files changed
+10
-8
No files matched your search
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user