feat(np): answer and declare the PS4 NP and trophy imports of CUSA03312 #9896
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9896"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-22T20:49:43Z.
What
Get-fix/AnyPS5#2, moved upstream. #9433 merged the PS4 NP and trophy libraries this built on, so it goes straight on
main.The Hasbro Family Fun Pack titles (CUSA03312) import NP functions that
maindoesn't answer yet, and call some of them while they start. Several open pull requests now cover parts of this, so this one keeps only what no other open pull request implements or declares.Implemented, following the signed-out model the NP libraries already use:
sceNpMatching2InitializeandsceNpMatching2Terminatekeep the library state.sizefield (0x28, or 0x30 with an SSL pool), and a second one returnsALREADY_INITIALIZED.NOT_INITIALIZEDwhen nothing was initialized.sceNpTrophyGetGameInfo,sceNpTrophyGetGroupInfoandsceNpTrophyGetTrophyInfoanswer for a registered context from the trophy package that #9433's library already opens. Onmainthey throw.numTrophies, so a count of 0 leaves it reading an unset request.TROPCONF.ESFMis encrypted, so the counts come from the package'sTROPnnn.PNGandGRnnn.PNGicons, as #9433 already counts trophies. Names, grades and timestamps are empty or unknown.Declared, each throwing
NotImplemented_nid_no_patch:sceNpSignalingDeactivateConnectionandsceInvitationDialogClose.The debt file of each library records what it gets here. The NpTrophy entry no longer says the three info calls throw.
Get-fix/AnyPS5#2 also had these, which other open pull requests cover now:
sceNpCmpOnlineIdandsceNpCmpNpId: #9037 and #9063. Boggle's UnityNpToolkit needssceNpCmpNpId.sceNpSignalingInitializeandsceNpSignalingTerminate: #9886. Monopoly Plus calls them at startup.sceNpLookupCreateTitleCtx: #9887.sceNpLookupAbortRequest,CreateAsyncRequestandPollAsync: #8472.sceNpMatching2AbortContextStart,GrantRoomOwner,SignalingGetConnectionStatusandSignalingGetPingInfo: #9874.sceNpTrophyAbortHandle: #9871.main.Tested
Windows 11 Pro 26300, WinLibs GCC 15.2.0, Release, on
main3bbd2321de.guest_np_ps4_imports(new) is registered incore/libs/CMakeLists.txtbeside the other guest NP tests.sceNpSignalingDeactivateConnectionthrows<name> not implemented.Export.cppas onmain, it stops at "sceNpTrophyGetGameInfo not implemented".CUSA03312, on
ps4/limbo-gpuat93eeee0141(#6977's head then), with these answers and the functions listed above. The stack also had Get-fix/AnyPS5#1 and local stand-ins forsceGnmDrawInitDefaultHardwareState200andsceGnmUpdate*Shader.The titles don't run on
main: they need #9430 to #9432.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pylists four. #9037 and #9063 register their tests on the same line ofcore/libs/CMakeLists.txt. #9874 also createsdocs/dev/debt/libSceNpMatching2.mdand changes the NpTrophy debt entry next to this one. #9886 also createsdocs/dev/debt/libSceNpSignaling.md. None implements or declares the same exports, and whichever lands second merges the other's lines.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code