mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
d6399b6036
commit
37737ceaa1
3 changed files with 8 additions and 1 deletions
|
@ -158,7 +158,7 @@ const HLEFunction LoadCoreForKernel[] =
|
||||||
{0XAE7C6E76, nullptr, "sceKernelRegisterModule", '?', "" },
|
{0XAE7C6E76, nullptr, "sceKernelRegisterModule", '?', "" },
|
||||||
{0X74CF001A, nullptr, "sceKernelReleaseModule", '?', "" },
|
{0X74CF001A, nullptr, "sceKernelReleaseModule", '?', "" },
|
||||||
{0XFB8AE27D, nullptr, "sceKernelFindModuleByAddress", '?', "" },
|
{0XFB8AE27D, nullptr, "sceKernelFindModuleByAddress", '?', "" },
|
||||||
{0XCCE4A157, nullptr, "sceKernelFindModuleByUID", '?', "" },
|
{0XCCE4A157, &WrapU_U<sceKernelFindModuleByUID>, "sceKernelFindModuleByUID", 'x', "x" , HLE_KERNEL_SYSCALL },
|
||||||
{0X82CE54ED, nullptr, "sceKernelModuleCount", '?', "" },
|
{0X82CE54ED, nullptr, "sceKernelModuleCount", '?', "" },
|
||||||
{0XC0584F0C, nullptr, "sceKernelGetModuleList", '?', "" },
|
{0XC0584F0C, nullptr, "sceKernelGetModuleList", '?', "" },
|
||||||
{0XCF8A41B1, &WrapU_C<sceKernelFindModuleByName>, "sceKernelFindModuleByName", 'x', "s", HLE_KERNEL_SYSCALL },
|
{0XCF8A41B1, &WrapU_C<sceKernelFindModuleByName>, "sceKernelFindModuleByName", 'x', "s", HLE_KERNEL_SYSCALL },
|
||||||
|
|
|
@ -2327,6 +2327,12 @@ static u32 sceKernelGetModuleId()
|
||||||
return __KernelGetCurThreadModuleId();
|
return __KernelGetCurThreadModuleId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 sceKernelFindModuleByUID(u32 uid)
|
||||||
|
{
|
||||||
|
ERROR_LOG(SCEMODULE, "UNIMPL sceKernelFindModuleByUID(%d)", uid);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
u32 sceKernelFindModuleByName(const char *name)
|
u32 sceKernelFindModuleByName(const char *name)
|
||||||
{
|
{
|
||||||
ERROR_LOG_REPORT(SCEMODULE, "UNIMPL sceKernelFindModuleByName(%s)", name);
|
ERROR_LOG_REPORT(SCEMODULE, "UNIMPL sceKernelFindModuleByName(%s)", name);
|
||||||
|
|
|
@ -45,6 +45,7 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str
|
||||||
void __KernelGPUReplay();
|
void __KernelGPUReplay();
|
||||||
void __KernelReturnFromModuleFunc();
|
void __KernelReturnFromModuleFunc();
|
||||||
u32 hleKernelStopUnloadSelfModuleWithOrWithoutStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr, bool WithStatus);
|
u32 hleKernelStopUnloadSelfModuleWithOrWithoutStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr, bool WithStatus);
|
||||||
|
u32 sceKernelFindModuleByUID(u32 uid);
|
||||||
|
|
||||||
void Register_ModuleMgrForUser();
|
void Register_ModuleMgrForUser();
|
||||||
void Register_ModuleMgrForKernel();
|
void Register_ModuleMgrForKernel();
|
||||||
|
|
Loading…
Add table
Reference in a new issue