mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Get rid of the "root" return hack.
This commit is contained in:
1 parent
c34854ead3
commit
727b3b4127
2 files changed
+8
-5
No files matched your search
@@ -1170,7 +1170,14 @@ void __KernelReturnFromModuleFunc()
|
||||
{
|
||||
// Return from the thread as normal.
|
||||
__KernelReturnFromThread();
|
||||
// TODO: sceKernelGetThreadExitStatus, __KernelGetCurThreadModuleId()
|
||||
|
||||
SceUID leftModuleID = __KernelGetCurThreadModuleId();
|
||||
SceUID leftThreadID = __KernelGetCurThread();
|
||||
int exitStatus = sceKernelGetThreadExitStatus(leftThreadID);
|
||||
|
||||
// Reschedule immediately (to leave the thread) and delete it and its stack.
|
||||
__KernelReSchedule("returned from module");
|
||||
sceKernelDeleteThread(leftThreadID);
|
||||
}
|
||||
|
||||
struct GetModuleIdByAddressArg
|
||||
|
||||
Reference in new issue
Block a user