sceKernelHasNeoMode, sceKernelGetFsSandboxRandomWord

This commit is contained in:
red-prig 2022-12-29 21:34:55 +03:00
parent ab753e4556
commit 27aff1b54c
2 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,7 @@ function ps4_sceKernelCheckReachability(path:PChar):Integer; SysV_ABI_CDecl;
function ps4_access(path:PChar;mode:Integer):Integer; SysV_ABI_CDecl;
function ps4_getdtablesize:Integer; SysV_ABI_CDecl;
function ps4_sceKernelGetFsSandboxRandomWord:PChar; SysV_ABI_CDecl;
implementation
@ -1049,6 +1050,14 @@ begin
_set_errno(0);
end;
const
fs_word:Pchar='sys';
function ps4_sceKernelGetFsSandboxRandomWord:PChar; SysV_ABI_CDecl;
begin
//__sys_randomized_path
Result:=fs_word;
end;
end.

View File

@ -119,6 +119,11 @@ begin
Result:=0; //no
end;
function ps4_sceKernelHasNeoMode:Integer; SysV_ABI_CDecl;
begin
Result:=0; //no
end;
function ps4_sceKernelGetModuleInfoFromAddr(Addr:Pointer;flags:DWORD;info:pSceKernelModuleInfoEx):Integer; SysV_ABI_CDecl;
var
node:TElf_node;
@ -1271,6 +1276,7 @@ begin
lib^.set_proc($5AC95C2B51507062,@ps4_sceKernelIsNeoMode);
lib^.set_proc($9A9C4076A5BB74A6,@ps4_sceKernelIsProspero);
lib^.set_proc($ACD46D9B5BA2A326,@ps4_sceKernelHasNeoMode);
//mmap
@ -1451,6 +1457,7 @@ begin
lib^.set_proc($F2F13A67A5446329,@ps4_access);
lib^.set_proc($B19BB06833C04CAB,@ps4_getdtablesize);
lib^.set_proc($2467D330139D509A,@ps4_sceKernelGetFsSandboxRandomWord);
//file