mirror of https://github.com/red-prig/fpPS4.git
Fix, Take into account deprecated memory types
This commit is contained in:
parent
5f0614d751
commit
697b5fed70
|
@ -401,9 +401,7 @@ end;
|
|||
function _test_mtype(mtype:Integer):Boolean; inline;
|
||||
begin
|
||||
Case mtype of
|
||||
SCE_KERNEL_WB_ONION ,
|
||||
SCE_KERNEL_WC_GARLIC,
|
||||
SCE_KERNEL_WB_GARLIC:Result:=True;
|
||||
SCE_KERNEL_WB_ONION..SCE_KERNEL_WB_GARLIC:Result:=True;
|
||||
else
|
||||
Result:=False;
|
||||
end;
|
||||
|
|
11
rtl/mmap.pas
11
rtl/mmap.pas
|
@ -30,6 +30,17 @@ const
|
|||
SCE_KERNEL_WC_GARLIC = 3;
|
||||
SCE_KERNEL_WB_GARLIC =10;
|
||||
|
||||
//deprecated
|
||||
SCE_KERNEL_WB_ONION_NONVOLATILE = 1;
|
||||
SCE_KERNEL_WC_GARLIC_VOLATILE = 2;
|
||||
SCE_KERNEL_WC_GARLIC_NONVOLATILE = 3;
|
||||
SCE_KERNEL_WT_ONION_VOLATILE = 4;
|
||||
SCE_KERNEL_WT_ONION_NONVOLATILE = 5;
|
||||
SCE_KERNEL_WP_ONION_VOLATILE = 6;
|
||||
SCE_KERNEL_WP_ONION_NONVOLATILE = 7;
|
||||
SCE_KERNEL_UC_GARLIC_VOLATILE = 8;
|
||||
SCE_KERNEL_UC_GARLIC_NONVOLATILE = 9;
|
||||
|
||||
//mmap
|
||||
PROT_NONE =$00; // no permissions
|
||||
PROT_READ =$01; // pages can be read
|
||||
|
|
Loading…
Reference in New Issue