mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-11 02:46:14 +00:00
Show an error message instead of crashing on demos we don't have keys for
This commit is contained in:
parent
5fc8de091d
commit
cfc23f59de
@ -697,9 +697,12 @@ bool __KernelLoadExec(const char *filename, SceKernelLoadExecParam *param, std::
|
||||
|
||||
Module *module = __KernelLoadModule(temp, 0, error_string);
|
||||
|
||||
if (!module) {
|
||||
if (!module || module->isFake)
|
||||
{
|
||||
if (module)
|
||||
kernelObjects.Destroy<Module>(module->GetUID());
|
||||
ERROR_LOG(LOADER, "Failed to load module %s", filename);
|
||||
*error_string = "Failed to load executable module";
|
||||
*error_string = "Failed to load executable: " + *error_string;
|
||||
delete [] temp;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user