diff --git a/src/ps4_libscecamera.pas b/src/ps4_libscecamera.pas index 8a8367e9..ec904fef 100644 --- a/src/ps4_libscecamera.pas +++ b/src/ps4_libscecamera.pas @@ -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; @@ -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