diff --git a/Core/HLE/HLETables.cpp b/Core/HLE/HLETables.cpp index 4c5ed553aa..562fdbf931 100644 --- a/Core/HLE/HLETables.cpp +++ b/Core/HLE/HLETables.cpp @@ -158,7 +158,7 @@ const HLEFunction LoadCoreForKernel[] = {0XAE7C6E76, nullptr, "sceKernelRegisterModule", '?', "" }, {0X74CF001A, nullptr, "sceKernelReleaseModule", '?', "" }, {0XFB8AE27D, nullptr, "sceKernelFindModuleByAddress", '?', "" }, - {0XCCE4A157, nullptr, "sceKernelFindModuleByUID", '?', "" }, + {0XCCE4A157, &WrapU_U, "sceKernelFindModuleByUID", 'x', "x" , HLE_KERNEL_SYSCALL }, {0X82CE54ED, nullptr, "sceKernelModuleCount", '?', "" }, {0XC0584F0C, nullptr, "sceKernelGetModuleList", '?', "" }, {0XCF8A41B1, &WrapU_C, "sceKernelFindModuleByName", 'x', "s", HLE_KERNEL_SYSCALL }, diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 486bd06bd0..0b2b55ae74 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2327,6 +2327,12 @@ static u32 sceKernelGetModuleId() return __KernelGetCurThreadModuleId(); } +u32 sceKernelFindModuleByUID(u32 uid) +{ + ERROR_LOG(SCEMODULE, "UNIMPL sceKernelFindModuleByUID(%d)", uid); + return 0; +} + u32 sceKernelFindModuleByName(const char *name) { ERROR_LOG_REPORT(SCEMODULE, "UNIMPL sceKernelFindModuleByName(%s)", name); diff --git a/Core/HLE/sceKernelModule.h b/Core/HLE/sceKernelModule.h index e6fabd9829..99e5473b05 100644 --- a/Core/HLE/sceKernelModule.h +++ b/Core/HLE/sceKernelModule.h @@ -45,6 +45,7 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str void __KernelGPUReplay(); void __KernelReturnFromModuleFunc(); u32 hleKernelStopUnloadSelfModuleWithOrWithoutStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr, bool WithStatus); +u32 sceKernelFindModuleByUID(u32 uid); void Register_ModuleMgrForUser(); void Register_ModuleMgrForKernel();