mirror of
https://github.com/joel16/uofw.git
synced 2024-11-26 21:10:38 +00:00
Add sceUtilsGetModuleExpireTick (sceMesgLed_driver_9E3C79D9)
This commit is contained in:
parent
35b91b09a9
commit
23a0826244
@ -4,9 +4,24 @@
|
||||
|
||||
#include <common_header.h>
|
||||
|
||||
//TODO doc
|
||||
s32 sceMesgLed_driver_9E3C79D9(u8 *psp, u32 pspSize, u64 *appTicks);
|
||||
// s32 sceMesgLed_driver_9E3C79D9(u8 *modBuf, u32 arg1, u32 *buf);
|
||||
/**
|
||||
* Get the module expiration time in RTC tick units.
|
||||
* An expired module is considered invalid, and cannot be run.
|
||||
*
|
||||
* Supported tags (2g):
|
||||
* - 0xADF305F0 (demo executable)
|
||||
* - 0x279D05F0 (application module)
|
||||
*
|
||||
* @note The RTC tick time is a 64-bits number stored at offset 0xE4 of the ~PSP header.
|
||||
* Only a few PRX tags support this.
|
||||
*
|
||||
* @param psp ~PSP module header structure (MUST be aligned on a 64-bytes boundary).
|
||||
* @param pspSize Size of the ~PSP header (MUST be >= 0x160 bytes).
|
||||
* @param expireTick Required pointer to receive the expiration time in RTC tick units.
|
||||
*
|
||||
* @return 0 success; < 0 SCE driver error
|
||||
*/
|
||||
s32 sceUtilsGetModuleExpireTick(u8 *psp, u32 pspSize, u64 *expireTick); // sceMesgLed_driver_9E3C79D9
|
||||
|
||||
/**
|
||||
* Decrypt a VSH module (mode 3 DECRYPT_MODE_VSH_MODULE).
|
||||
|
Binary file not shown.
@ -1576,7 +1576,7 @@ static s32 CheckTick(u8 *modBuf)
|
||||
u32 buf[2];
|
||||
u32 tick[2];
|
||||
|
||||
status = sceMesgLed_driver_9E3C79D9(modBuf, 0x160, buf); //0x000067C4
|
||||
status = sceUtilsGetModuleExpireTick(modBuf, 0x160, buf); //0x000067C4
|
||||
//getModuleParam error
|
||||
if (status < SCE_ERROR_OK) //0x000067E0
|
||||
return (status == (s32)SCE_ERROR_NOT_SUPPORTED) ? SCE_ERROR_OK : status; //0x000067D4
|
||||
|
@ -22,7 +22,7 @@ PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleULength, 0x66B348B2)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleLLengthByPolling, 0x6BF453D3)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleILengthByPolling, 0x792A6126)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleWLength, 0x91E0A9AD)
|
||||
PSP_EXPORT_FUNC_NID(sceMesgLed_driver_9E3C79D9, 0x9E3C79D9)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetModuleExpireTick, 0x9E3C79D9)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleKLength, 0xB2CDAC3F)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleVLength, 0xB2D95FDF)
|
||||
PSP_EXPORT_FUNC_NID(sceUtilsGetLoadModuleKLengthByPolling, 0xB5596BE4)
|
||||
|
Loading…
Reference in New Issue
Block a user