If __KernelLoadExec() fails, halt emulation.

Otherwise, we have no current thread, nothing can work.
This commit is contained in:
Unknown W. Brackets 2013-06-15 21:22:28 -07:00
parent f836517853
commit 2ab16f13b1

View File

@ -995,6 +995,7 @@ int sceKernelLoadExec(const char *filename, u32 paramPtr)
std::string error_string;
if (!__KernelLoadExec(filename, param, &error_string)) {
ERROR_LOG(HLE, "sceKernelLoadExec failed: %s", error_string.c_str());
Core_UpdateState(CORE_ERROR);
return -1;
}
return 0;