From 2f69378bf674172eaffd76809c09cfbc6bb1130c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 25 May 2013 21:07:41 -0700 Subject: [PATCH] Return the moduleId in sceKernelUnloadModule(). Final Fantasy 4 very clearly requires this. --- 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 017918f486..04911ca785 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1151,7 +1151,7 @@ u32 sceKernelUnloadModule(u32 moduleId) return error; kernelObjects.Destroy(moduleId); - return 0; + return moduleId; } u32 sceKernelStopUnloadSelfModuleWithStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr)