diff options
author | Sunguk Lee | 2019-09-29 17:27:30 +0900 |
---|---|---|
committer | Sunguk Lee | 2019-09-29 17:27:30 +0900 |
commit | 83ea9005e1e7ee910d7b8fc68b5fb56c1aeab0da (patch) | |
tree | 6b20df1a4a2fd17aeae0ddd3de239fd06fb317e6 /include | |
parent | fixed wrong structure and function types of modulemgr.h (#425) (diff) | |
parent | Added some SceKernelModulemgr NID (diff) | |
download | vds-libraries-83ea9005e1e7ee910d7b8fc68b5fb56c1aeab0da.tar.gz |
Merge pull request #426 from Princess-of-Sleeping/master
Update modulemgr
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel/kernel/modulemgr.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/kernel/kernel/modulemgr.h b/include/kernel/kernel/modulemgr.h index bbf42b6..3432b3d 100644 --- a/include/kernel/kernel/modulemgr.h +++ b/include/kernel/kernel/modulemgr.h @@ -112,16 +112,18 @@ typedef struct { }; } SceKernelModuleListInfo; -typedef struct -{ - SceSize size; //!< sizeof(SceKernelModuleInfo2) +typedef struct { + SceSize size; //!< sizeof(SceKernelModuleInfo2) : 0x120 SceUID modid1; - uint32_t unk1; - uint32_t unk2; - uint32_t unk3; - uint32_t unk4; - char module_name[256]; - uint32_t unk5; + uint32_t unk_0x08; + uint16_t unk_0x0C; + uint16_t unk_0x0E; + uint16_t unk_0x10; + uint16_t unk_0x12; + uint16_t unk_0x14; + uint16_t unk_0x16; + char module_name[0x100]; // offset : 0x18 + uint32_t unk_0x118; SceUID modid2; } SceKernelModuleInfo2; @@ -193,15 +195,13 @@ SceUID sceKernelGetProcessMainModule(SceUID pid); int sceKernelGetModuleList2(SceUID pid, SceKernelModuleListInfo *infolists, size_t *num); /** - * @param[in] pid - target pid - * @param[in] modid - target modid - * @param[out] info - info output - * @param[in] unk1 - set 0x120 - * @param[in] unk2 - set 0x120 + * @param[in] pid - target pid + * @param[in] modid - target modid + * @param[out] info - info output * * @return 0 on success, < 0 on error. */ -int sceKernelGetModuleInfo2(SceUID pid, SceUID modid, SceKernelModuleInfo2 *info, int unk1, int unk2); +int sceKernelGetModuleInfo2(SceUID pid, SceUID modid, SceKernelModuleInfo2 *info); int sceKernelGetModuleLibraryInfo(SceUID pid, SceUID modid, void *unk1, const void *unk2, int unk3); int sceKernelGetModuleUid(SceUID pid, SceUID modid, SceUID *modid_out, const void *unk1, int unk2); |