mirror of https://github.com/red-prig/fpPS4.git
This commit is contained in:
parent
7fdb7bacc0
commit
a50174f929
|
@ -12,29 +12,47 @@ uses
|
|||
implementation
|
||||
|
||||
const
|
||||
SCE_DISC_MAP_ERROR_INVALID_ARGUMENT=-2129657855; //0x81100001
|
||||
SCE_DISC_MAP_ERROR_INVALID_ARGUMENT =-2129657855; //0x81100001
|
||||
SCE_DISC_MAP_ERROR_LOCATION_NOT_MAPPED=-2129657854; //0x81100002
|
||||
SCE_DISC_MAP_ERROR_FILE_NOT_FOUND =-2129657853; //0x81100003
|
||||
SCE_DISC_MAP_ERROR_NO_BITMAP_INFO =-2129657852; //0x81100004
|
||||
SCE_DISC_MAP_ERROR_FATAL =-2129657601; //0x811000FF
|
||||
|
||||
function ps4_sceDiscMapIsRequestOnHDD(path:PChar;param2,param3:Int64;param4:PInteger):Integer; SysV_ABI_CDecl;
|
||||
DM_PATCH_FLAG=$1;
|
||||
DM_APP1_FLAG =$100;
|
||||
|
||||
function ps4_sceDiscMapIsRequestOnHDD(path:PChar;param2,param3:Int64;pret:PInteger):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
if (path=nil) or (param4=nil) then Exit(SCE_DISC_MAP_ERROR_INVALID_ARGUMENT);
|
||||
param4^:=1;
|
||||
//pret^:=1;
|
||||
Result:=SCE_DISC_MAP_ERROR_NO_BITMAP_INFO;
|
||||
end;
|
||||
|
||||
function ps4_ioKMruft1ek(path:PChar;param2,param3:Int64;pflags,pret1,pret2:PInt64):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
//pflags^:=0;
|
||||
//pret1^:=0;
|
||||
//pret2^:=0;
|
||||
Result:=SCE_DISC_MAP_ERROR_NO_BITMAP_INFO;
|
||||
end;
|
||||
|
||||
function ps4_fJgP_wqifno(path:PChar;param2,param3:Int64;pflags,pret1,pret2:PInt64):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
if (param3<=0) or
|
||||
(param2<=-2) or
|
||||
(path=nil) or
|
||||
(pflags=nil) or
|
||||
(pret1=nil) or
|
||||
(pret2=nil) then Exit(SCE_DISC_MAP_ERROR_INVALID_ARGUMENT);
|
||||
|
||||
pflags^:=0;
|
||||
pret1^:=0;
|
||||
pret2^:=0;
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function ps4_8A828CAEE7EDD5E9(path:PChar;param2,param3:Int64;pflags,param5,param6:PInt64):Integer; SysV_ABI_CDecl;
|
||||
function ps4_sceDiscMapGetPackageSize(fflags:Int64;pret1,pret2:PInt64):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
pflags^:=0;
|
||||
param5^:=0;
|
||||
param6^:=0;
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function ps4_7C980FFB0AA27E7A(path:PChar;param2,param3:Int64;pflags,param5,param6:PInt64):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
pflags^:=0;
|
||||
param5^:=0;
|
||||
param6^:=0;
|
||||
Result:=0;
|
||||
Result:=SCE_DISC_MAP_ERROR_NO_BITMAP_INFO;
|
||||
end;
|
||||
|
||||
function Load_libSceDiscMap(Const name:RawByteString):TElf_node;
|
||||
|
@ -46,8 +64,9 @@ begin
|
|||
|
||||
lib:=Result._add_lib('libSceDiscMap');
|
||||
lib^.set_proc($95B40AAAC11186D1,@ps4_sceDiscMapIsRequestOnHDD);
|
||||
lib^.set_proc($8A828CAEE7EDD5E9,@ps4_8A828CAEE7EDD5E9);
|
||||
lib^.set_proc($7C980FFB0AA27E7A,@ps4_7C980FFB0AA27E7A);
|
||||
lib^.set_proc($8A828CAEE7EDD5E9,@ps4_ioKMruft1ek);
|
||||
lib^.set_proc($7C980FFB0AA27E7A,@ps4_fJgP_wqifno);
|
||||
lib^.set_proc($7E5D5EA039F0438B,@ps4_sceDiscMapGetPackageSize);
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
|
Loading…
Reference in New Issue