Skip to content

Commit

Permalink
libSceShareUtility (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ordinary205 authored Jan 25, 2024
1 parent 46d74e0 commit 04344ba
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions fpPS4.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
ps4_libSceUlt,
ps4_libSceGameLiveStreaming,
ps4_libSceSharePlay,
ps4_libSceShareUtility,
ps4_libSceSocialScreen,
ps4_libSceVideoRecording,
ps4_libSceContentExport,
Expand Down
48 changes: 48 additions & 0 deletions src/ps4_libsceshareutility.pas
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 04344ba

Please sign in to comment.