This commit is contained in:
red-prig 2022-12-13 22:01:10 +03:00
parent 617dcc492f
commit 6e4d6b60c9
3 changed files with 6 additions and 10 deletions

View File

@ -355,7 +355,9 @@ end;
function ps4_sceKernelGetDirectMemorySize:Int64; SysV_ABI_CDecl;
begin
Result:=SCE_KERNEL_MAIN_DMEM_SIZE-(448*1024*1024);
//5184 MiB - 512 MiB
Result:=(5184*1024*1024)-(512*1024*1024);
//Result:=SCE_KERNEL_MAIN_DMEM_SIZE-(448*1024*1024);
end;
function ps4_getpagesize:Integer; SysV_ABI_CDecl;

View File

@ -672,18 +672,12 @@ end;
function ps4_scePthreadEqual(t1,t2:pthread):Integer; SysV_ABI_CDecl;
begin
if (t1=t2) then
Result:=1
else
Result:=0;
Result:=px2sce(ps4_pthread_equal(t1,t2));
end;
function ps4_pthread_equal(t1,t2:pthread):Integer; SysV_ABI_CDecl;
begin
if (t1=t2) then
Result:=1
else
Result:=0;
Result:=ord(t1=t2);
end;
procedure ps4_scePthreadExit(value_ptr:Pointer); SysV_ABI_CDecl;

View File

@ -110,7 +110,7 @@ begin
Result:=(Addr-pAlign);
Addr:=pAlign;
Size:=Max(Size+Result,mr.size);
Size:=Size+Result;
end;
function _is_sparce(Addr:Pointer;Size:TVkDeviceSize;usage:TVkFlags):Integer;