Skip to content

Commit

Permalink
sceNpGetAccountId (#149)
Browse files Browse the repository at this point in the history
* sceNpGetAccountId
  • Loading branch information
Ordinary205 committed Dec 23, 2023
1 parent 000305d commit f6e4ae4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/np/ps4_libscenpmanager.pas
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ function ps4_sceNpSetContentRestriction(pRestriction:PSceNpContentRestriction):I
Result:=0;
end;

function ps4_sceNpGetAccountId(onlineId:pSceNpOnlineId;pAccountId:PQWORD):Integer; SysV_ABI_CDecl;
begin
if (onlineId=nil) then Exit(SCE_NP_ERROR_INVALID_ARGUMENT);
if (pAccountId=nil) then Exit(SCE_NP_ERROR_INVALID_ARGUMENT);
pAccountId^:=1111;
Result:=0;
end;

function ps4_sceNpGetAccountIdA(userId:Integer;pAccountId:PQWORD):Integer; SysV_ABI_CDecl;
begin
if (pAccountId=nil) then Exit(SCE_NP_ERROR_INVALID_ARGUMENT);
Expand Down Expand Up @@ -489,6 +497,7 @@ function Load_libSceNpManager(Const name:RawByteString):TElf_node;

lib:=Result._add_lib('libSceNpManager');
lib^.set_proc($036090DE4812A294,@ps4_sceNpSetContentRestriction);
lib^.set_proc($6BC47DFFBE6EE223,@ps4_sceNpGetAccountId);
lib^.set_proc($ADB9276948E9A96A,@ps4_sceNpGetAccountIdA);
lib^.set_proc($1A1CFD8960D4B42E,@ps4_sceNpGetAccountCountry);
lib^.set_proc($253FADD346B74F10,@ps4_sceNpGetAccountCountryA);
Expand Down

0 comments on commit f6e4ae4

Please sign in to comment.