Add draft sceKernelFindModuleByUID (#13380)

* Add draft sceKernelFindModuleByUID

#13205

* Add KERNEL_SYSCALL flag

* oop

* oop2

* Not sure why make this change before

* Last night I might be too tried
This commit is contained in:
sum authored and GitHub committed 2020-09-05 07:29:56 +02:00
1 parent d6399b6036
commit 37737ceaa1
3 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ const HLEFunction LoadCoreForKernel[] =
{0XAE7C6E76, nullptr, "sceKernelRegisterModule", '?', "" },
{0X74CF001A, nullptr, "sceKernelReleaseModule", '?', "" },
{0XFB8AE27D, nullptr, "sceKernelFindModuleByAddress", '?', "" },
{0XCCE4A157, nullptr, "sceKernelFindModuleByUID", '?', "" },
{0XCCE4A157, &WrapU_U<sceKernelFindModuleByUID>, "sceKernelFindModuleByUID", 'x', "x" , HLE_KERNEL_SYSCALL },
{0X82CE54ED, nullptr, "sceKernelModuleCount", '?', "" },
{0XC0584F0C, nullptr, "sceKernelGetModuleList", '?', "" },
{0XCF8A41B1, &WrapU_C<sceKernelFindModuleByName>, "sceKernelFindModuleByName", 'x', "s", HLE_KERNEL_SYSCALL },
+6
View File
@@ -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);
+1
View File
@@ -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();