mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-03 19:47:59 +00:00
Use ppsspp error name
This commit is contained in:
parent
dfad6cd479
commit
35c05ef064
@ -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");
|
||||
|
||||
|
@ -77,8 +77,6 @@ struct SceKernelSysClock {
|
||||
u32_le hi;
|
||||
};
|
||||
|
||||
static const int ERROR_KERNEL_WAIT_CAN_NOT_WAIT = 0x800201a7;
|
||||
static const int ERROR_KERNEL_ILLEGAL_ARGUMENT = 0x800200d2;
|
||||
|
||||
// TODO: Map these to PSP wait types. Most of these are wrong.
|
||||
// remember to update the waitTypeNames array in sceKernelThread.cpp when changing these
|
||||
|
Loading…
x
Reference in New Issue
Block a user