Increased maximum direct memory size

This commit is contained in:
Pavel 2023-02-14 15:15:46 +03:00
parent 21170bba6b
commit 6b4dcf40f3
2 changed files with 5 additions and 2 deletions

View File

@ -67,7 +67,7 @@ type
const
Flo=0;
Fhi=$17FFFFFFF;
Fhi=$1FFFFFFFF;
FMaxSize=(Fhi-Flo+1);
var

View File

@ -53,7 +53,8 @@ var
NamedManager :TNamedManager;
Const
SCE_KERNEL_MAIN_DMEM_SIZE=$180000000; //6GB
//SCE_KERNEL_MAIN_DMEM_SIZE=$180000000; //6GB
SCE_KERNEL_MAIN_DMEM_SIZE=$200000000; //8GB
type
pSceKernelDirectMemoryQueryInfo=^SceKernelDirectMemoryQueryInfo;
@ -557,6 +558,8 @@ var
begin
Result:=EINVAL;
Writeln('srchd:',HexStr(searchStart,10),'..',HexStr(searchEnd,10),' align:',HexStr(alignment,10));
if (searchEnd<=searchStart) then Exit;
if (searchEnd>SCE_KERNEL_MAIN_DMEM_SIZE) then Exit;