From dfbb0bdea241cc48743a79d24804cfe7c83dff91 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 21 Aug 2014 10:34:56 +0200 Subject: [PATCH] Hack: Return -1 specifically for trying to load SFO's as modules. Works around #6748 Will test properly later and return the correct value but this should be zero-impact. --- Core/HLE/sceKernelModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 57ddbc3c4d..f014f44495 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1697,7 +1697,7 @@ u32 sceKernelLoadModule(const char *name, u32 flags, u32 optionAddr) if (!module) { if (magic == 0x46535000) { ERROR_LOG(LOADER, "Game tried to load an SFO as a module. Go figure? Magic = %08x", magic); - return error; + return -1; } if (info.name == "BOOT.BIN")