From cfc23f59def0c425dd3a68950e969bddb87ac745 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 9 May 2013 13:14:19 +0200 Subject: [PATCH] Show an error message instead of crashing on demos we don't have keys for --- Core/HLE/sceKernelModule.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 59daa30d4d..76c7405c98 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -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->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; }