Skip to content

Commit

Permalink
SceNpMatching2Terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ordinary205 committed Dec 24, 2023
1 parent 1efb6ca commit 026d2b7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/np/ps4_libscenpmatching2.pas
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ implementation
errorCode:Integer;
arg:Pointer); SysV_ABI_CDecl;

type
pSceNpMatching2TerminateParameter=^SceNpMatching2TerminateParameter;
SceNpMatching2TerminateParameter=packed record
poolSize:QWORD; // 0 = default
cpuAffinityMask:QWORD; // 0 = default SceKernelCpumask
threadPriority:Integer; // 0 = default
padding:Integer;
threadStackSize:QWORD; // 0 = default
size:QWORD; // size of this structure
sslPoolSize:QWORD; // 0 = default
end;

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

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

function Load_libSceNpMatching2(Const name:RawByteString):TElf_node;
var
lib:PLIBRARY;
Expand All @@ -72,6 +88,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

0 comments on commit 026d2b7

Please sign in to comment.