mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 13:13:24 +02:00
If __KernelLoadExec() fails, halt emulation.
Otherwise, we have no current thread, nothing can work.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user