This commit is contained in:
Pavel 2022-12-03 20:09:56 +03:00
parent 32c587fe7f
commit 5a5d8b2c07
2 changed files with 9 additions and 0 deletions

View File

@ -941,6 +941,7 @@ begin
lib^.set_proc($93E017AAEDBF7817,@ps4_getpagesize);
lib^.set_proc($A4EF7A4F0CCE9B91,@ps4_sceKernelGetDirectMemorySize);
lib^.set_proc($68DCF5D5F9E7CE2E,@ps4_sceKernelAvailableFlexibleMemorySize);
lib^.set_proc($9F5FEFE85814ECC4,@ps4_sceKernelConfiguredFlexibleMemorySize);
lib^.set_proc($AD35F0EB9C662C80,@ps4_sceKernelAllocateDirectMemory);
lib^.set_proc($07EBDCD803B666B7,@ps4_sceKernelAllocateMainDirectMemory);

View File

@ -86,6 +86,7 @@ type
function ps4_sceKernelGetDirectMemorySize:Int64; SysV_ABI_CDecl;
function ps4_getpagesize:Integer; SysV_ABI_CDecl;
function ps4_sceKernelAvailableFlexibleMemorySize(sizeOut:PQWORD):Integer; SysV_ABI_CDecl;
function ps4_sceKernelConfiguredFlexibleMemorySize(sizeOut:PQWORD):Integer; SysV_ABI_CDecl;
//direct
@ -383,6 +384,13 @@ begin
sizeOut^:=flex;
end;
function ps4_sceKernelConfiguredFlexibleMemorySize(sizeOut:PQWORD):Integer; SysV_ABI_CDecl;
begin
Result:=0;
if (sizeOut=nil) then Exit(SCE_KERNEL_ERROR_EINVAL);
sizeOut^:=SceKernelFlexibleMemorySize;
end;
function _test_mtype(mtype:Integer):Boolean; inline;
begin
Case mtype of