dont wake up thread with waitType WAITTYPE_MODULE in sceKernelReleaseWaitThread

add UTF-8 BOM to MiscScreens.cpp to avoid compile error.
This commit is contained in:
tpu 2013-07-18 00:16:42 +08:00
parent 94ef18025f
commit a4e447fe7e
2 changed files with 6 additions and 1 deletions

View file

@ -2605,6 +2605,11 @@ int sceKernelReleaseWaitThread(SceUID threadID)
WARN_LOG_REPORT(HLE, "sceKernelReleaseWaitThread(): Refusing to wake HLE-delayed thread, right thing to do?");
return SCE_KERNEL_ERROR_NOT_WAIT;
}
if (t->nt.waitType == WAITTYPE_MODULE)
{
WARN_LOG_REPORT(HLE, "sceKernelReleaseWaitThread(): Refusing to wake start_module thread, right thing to do?");
return SCE_KERNEL_ERROR_NOT_WAIT;
}
__KernelResumeThreadFromWait(threadID, SCE_KERNEL_ERROR_RELEASE_WAIT);
hleReSchedule("thread released from wait");

View file

@ -1,4 +1,4 @@
// Copyright (c) 2013- PPSSPP Project.
// Copyright (c) 2013- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by