mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-27 08:30:25 +00:00
update intercep usage comment
This commit is contained in:
parent
022871f218
commit
63e98d850c
@ -7,11 +7,12 @@
|
||||
|
||||
void core_initIntercepts() {
|
||||
/*Usage
|
||||
// functions has to be of SYSV_ABI!
|
||||
accessRuntimeExport()->interceptAdd((uintptr_t)int_Malloc, "Y7aJ1uydPMo", "libc", "libc")
|
||||
|
||||
// Calling original
|
||||
auto const origFunction = accessRuntimeExport()->interceptGetAddr((uintptr_t)int_Malloc);
|
||||
typedef void* (*fcnPtr)(void*, size_t);
|
||||
typedef SYSV_ABI void* (*fcnPtr)(void*, size_t);
|
||||
void* ret = ((fcnPtr)origFunction)(ptr, size);
|
||||
*/
|
||||
}
|
Loading…
Reference in New Issue
Block a user