diff --git a/fpPS4.lpr b/fpPS4.lpr index 1a40afb6..44959714 100644 --- a/fpPS4.lpr +++ b/fpPS4.lpr @@ -64,6 +64,7 @@ ps4_libSceUlt, ps4_libSceGameLiveStreaming, ps4_libSceSharePlay, + ps4_libSceShareUtility, ps4_libSceSocialScreen, ps4_libSceVideoRecording, ps4_libSceContentExport, diff --git a/src/ps4_libsceshareutility.pas b/src/ps4_libsceshareutility.pas new file mode 100644 index 00000000..9b5d962d --- /dev/null +++ b/src/ps4_libsceshareutility.pas @@ -0,0 +1,48 @@ +unit ps4_libSceShareUtility; + +{$mode ObjFPC}{$H+} + +interface + +uses + ps4_program, + Classes, + SysUtils; + +const + SCE_SHARE_UTILITY_HEAP_SIZE=128*1024; + +implementation + +function ps4_sceShareUtilityInitializeEx2(functionFlag:QWORD; + heapSize:QWORD; + threadPriority:Integer; + affinityMask:QWORD):Integer; SysV_ABI_CDecl; +begin + Result:=0; +end; + +function ps4_sceShareUtilityAdvanceInitialize(functionFlag:QWORD; + heapSize:QWORD; + threadPriority:Integer; + affinityMask:QWORD):Integer; SysV_ABI_CDecl; +begin + Result:=0; +end; + +function Load_libSceShareUtility(Const name:RawByteString):TElf_node; +var + lib:PLIBRARY; +begin + Result:=TElf_node.Create; + Result.pFileName:=name; + lib:=Result._add_lib('libSceShareUtility'); + lib^.set_proc($8FB0E56A50731E1F,@ps4_sceShareUtilityInitializeEx2); + lib^.set_proc($BB86C21A4AA1381E,@ps4_sceShareUtilityAdvanceInitialize); +end; + +initialization + ps4_app.RegistredPreLoad('libSceShareUtility.prx',@Load_libSceShareUtility); + +end. +