mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 21:46:23 +02:00
Use ppsspp error name
This commit is contained in:
1 parent
dfad6cd479
commit
35c05ef064
2 files changed
+2
-4
No files matched your search
@@ -2150,13 +2150,13 @@ void __KernelReturnFromThread()
|
||||
|
||||
int sceKernelExitThread(int exitStatus) {
|
||||
if (!__KernelIsDispatchEnabled() && sceKernelGetCompiledSdkVersion() > 0x0307FFFF)
|
||||
return ERROR_KERNEL_WAIT_CAN_NOT_WAIT;
|
||||
return hleLogError(SCEKERNEL, SCE_KERNEL_ERROR_CAN_NOT_WAIT);
|
||||
PSPThread *thread = __GetCurrentThread();
|
||||
_dbg_assert_msg_(thread != NULL, "Exited from a NULL thread.");
|
||||
|
||||
INFO_LOG(SCEKERNEL, "sceKernelExitThread(%d)", exitStatus);
|
||||
if (exitStatus < 0) {
|
||||
exitStatus = ERROR_KERNEL_ILLEGAL_ARGUMENT;
|
||||
exitStatus = SCE_KERNEL_ERROR_ILLEGAL_ARGUMENT;
|
||||
}
|
||||
__KernelStopThread(currentThread, exitStatus, "thread exited");
|
||||
|
||||
|
||||
Reference in new issue
Block a user