From d0f18cbbe5eb44f68fd61f34a5d46e3b0263a37c Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sat, 5 Sep 2020 22:02:47 +0800 Subject: [PATCH] Imp sceKernelFindModuleByName #13204 --- Core/HLE/sceKernelModule.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 0b2b55ae74..5f792b1033 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2335,14 +2335,10 @@ u32 sceKernelFindModuleByUID(u32 uid) u32 sceKernelFindModuleByName(const char *name) { - ERROR_LOG_REPORT(SCEMODULE, "UNIMPL sceKernelFindModuleByName(%s)", name); - int index = GetModuleIndex(name); - - if (index == -1) - return 0; - - return 1; + u32 temp = index + 1; + INFO_LOG(SCEMODULE, "%d = sceKernelFindModuleByName(%s)", temp, name); + return temp; } static u32 sceKernelLoadModuleByID(u32 id, u32 flags, u32 lmoptionPtr)