Skip to content

Commit

Permalink
sceCameraOpen function (#171)
Browse files Browse the repository at this point in the history
* sceCameraOpen function

* smoll fix

* +

---------

Co-authored-by: red-prig <[email protected]>
  • Loading branch information
kr1spy2115 and red-prig authored Jan 16, 2024
1 parent d101c58 commit 4460e17
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ps4_libscecamera.pas
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,25 @@ interface

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;
Expand All @@ -26,6 +39,7 @@ function Load_libSceCamera(Const name:RawByteString):TElf_node;
Result.pFileName:=name;
lib:=Result._add_lib('libSceCamera');
lib^.set_proc($A7A9F73698B7618E,@ps4_sceCameraIsAttached);
lib^.set_proc($0479FCDF1AC5F761,@ps4_sceCameraOpen);
end;

initialization
Expand Down

0 comments on commit 4460e17

Please sign in to comment.