mirror of
https://github.com/red-prig/fpPS4.git
synced 2024-11-23 06:19:57 +00:00
sceCameraOpen function (#171)
* sceCameraOpen function * smoll fix * + --------- Co-authored-by: red-prig <vdpasha@mail.ru>
This commit is contained in:
parent
d101c586ca
commit
4460e17647
@ -12,12 +12,25 @@ uses
|
||||
|
||||
implementation
|
||||
|
||||
type
|
||||
pSceCameraOpenParameter=^SceCameraOpenParameter;
|
||||
SceCameraOpenParameter=packed record
|
||||
sizeThis :DWORD;
|
||||
reserved1:DWORD;
|
||||
reserved2:DWORD;
|
||||
reserved3:DWORD;
|
||||
end;
|
||||
|
||||
function ps4_sceCameraIsAttached(index:Integer):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function ps4_sceCameraOpen(userId,_type,index:Integer;pParam:pSceCameraOpenParameter):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=333;
|
||||
end;
|
||||
|
||||
function Load_libSceCamera(Const name:RawByteString):TElf_node;
|
||||
var
|
||||
lib:PLIBRARY;
|
||||
@ -26,6 +39,7 @@ begin
|
||||
Result.pFileName:=name;
|
||||
lib:=Result._add_lib('libSceCamera');
|
||||
lib^.set_proc($A7A9F73698B7618E,@ps4_sceCameraIsAttached);
|
||||
lib^.set_proc($0479FCDF1AC5F761,@ps4_sceCameraOpen);
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user