Skip to content

Commit

Permalink
sceGameLiveStreamingSetMaxBitrate, sceNpMatching2Terminate and sceNpT…
Browse files Browse the repository at this point in the history
…rophyDestroyContext (#150)

* sceGameLiveStreamingSetMaxBitrate

* SceNpMatching2Terminate

* sceNpTrophyDestroyContext

* fix params

---------

Co-authored-by: red-prig <vdpasha@mail.ru>
  • Loading branch information
Ordinary205 and red-prig committed Dec 24, 2023
1 parent f6e4ae4 commit 08a56cf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/np/ps4_libscenpmatching2.pas
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ implementation
errorCode:Integer;
arg:Pointer); SysV_ABI_CDecl;


function ps4_sceNpMatching2Initialize(param:pSceNpMatching2InitializeParameter):Integer; SysV_ABI_CDecl;
begin
Result:=0;
Expand All @@ -61,6 +60,11 @@ function ps4_sceNpMatching2CreateContext(param:pSceNpMatching2CreateContextParam
Result:=SCE_NP_MATCHING2_ERROR_NOT_INITIALIZED;
end;

function ps4_sceNpMatching2Terminate():Integer; SysV_ABI_CDecl;
begin
Result:=0;
end;

function Load_libSceNpMatching2(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
Expand All @@ -72,6 +76,7 @@ function Load_libSceNpMatching2(Const name:RawByteString):TElf_node;
lib^.set_proc($D74B777B9F893E75,@ps4_sceNpMatching2Initialize);
lib^.set_proc($7D041F3FCEC8EE1B,@ps4_sceNpMatching2RegisterContextCallback);
lib^.set_proc($61F9A95BBD7DACCA,@ps4_sceNpMatching2CreateContext);
lib^.set_proc($32AA77949FAC8F2E,@ps4_sceNpMatching2Terminate);
end;

initialization
Expand Down
7 changes: 7 additions & 0 deletions src/np/ps4_libscenptrophy.pas
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ function ps4_sceNpTrophyCreateHandle(handle:PInteger):Integer; SysV_ABI_CDecl;
Result:=0;
end;

function ps4_sceNpTrophyDestroyContext(context:Integer):Integer; SysV_ABI_CDecl;
begin
Writeln('sceNpTrophyDestroyContext');
Result:=0;
end;

function ps4_sceNpTrophyDestroyHandle(handle:Integer):Integer; SysV_ABI_CDecl;
begin
Writeln('sceNpTrophyDestroyHandle:',handle);
Expand Down Expand Up @@ -327,6 +333,7 @@ function Load_libSceNpTrophy(Const name:RawByteString):TElf_node;
lib:=Result._add_lib('libSceNpTrophy');
lib^.set_proc($5DB9236E86D99426,@ps4_sceNpTrophyCreateContext);
lib^.set_proc($ABB53AB440107FB7,@ps4_sceNpTrophyCreateHandle);
lib^.set_proc($1355ABC1DD3B2EBF,@ps4_sceNpTrophyDestroyContext);
lib^.set_proc($18D705E2889D6346,@ps4_sceNpTrophyDestroyHandle);
lib^.set_proc($6939C7B3B5BFF549,@ps4_sceNpTrophyAbortHandle);
lib^.set_proc($4C9080C6DA3D4845,@ps4_sceNpTrophyRegisterContext);
Expand Down
7 changes: 7 additions & 0 deletions src/ps4_libscegamelivestreaming.pas
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ function ps4_sceGameLiveStreamingSetCameraFrameSetting(setting:pSceGameLiveStrea
Result:=0;
end;

function ps4_sceGameLiveStreamingSetMaxBitrate(isSetMaxBitrate:DWORD):Integer; SysV_ABI_CDecl;
begin
Writeln('sceGameLiveStreamingSetMaxBitrate,isSetMaxBitrate=',isSetMaxBitrate);
Result:=0;
end;

function ps4_sceGameLiveStreamingSetStandbyScreenResource(resource:PChar):Integer; SysV_ABI_CDecl;
begin
Writeln('sceGameLiveStreamingSetStandbyScreenResource:',resource);
Expand All @@ -145,6 +151,7 @@ function Load_libSceGameLiveStreaming(Const name:RawByteString):TElf_node;
lib^.set_proc($0A83CCC77EBD12A3,@ps4_sceGameLiveStreamingGetCurrentStatus);
lib^.set_proc($94AF1D2C1369F4E1,@ps4_sceGameLiveStreamingGetCurrentStatus2);
lib^.set_proc($DCF4A2C00CC52121,@ps4_sceGameLiveStreamingSetCameraFrameSetting);
lib^.set_proc($ABF931B9A17B5115,@ps4_sceGameLiveStreamingSetMaxBitrate);
lib^.set_proc($30BBD823CE85140A,@ps4_sceGameLiveStreamingSetStandbyScreenResource);
end;

Expand Down

0 comments on commit 08a56cf

Please sign in to comment.