feat(libSceNpMatching2): answer signaling connection status and context start abort offline #12013
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12013"
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 simnJS on 2026-10-27T17:06:24Z.
What
Two
libSceNpMatching2exports that Hasbro Family Fun Pack (CUSA03312) imports (#9896, discussions/7198) threwNotImplementedonmain. They now answer within the offline context model the library already follows:int sceNpMatching2SignalingGetConnectionStatus(u16 ctxId, u64 roomId, u16 memberId, s32* connStatus, void* peerAddr, u16* peerPort)NOT_INITIALIZEDbeforesceNpMatching2InitializeandINVALID_CONTEXT_IDfor an unknown or destroyed context. In both cases the outputs are left as they were.sceNpMatching2ContextStartreturns the resolver timeout), so no room is ever joined. This is what shadPS4 answers for a member outside a room.connStatusthrows after the initialization check. The references disagree on it: shadPS4 skips the write, and RPCS3's PS3 module returnsINVALID_ARGUMENT.int sceNpMatching2AbortContextStart(u16 ctxId)NOT_INITIALIZEDbefore initialization, as RPCS3 does.The signatures follow shadPS4's declarations (
np_matching2.h,np_types2.h: context idu16, room idu64, member idu16).Not measured on a console. The debt entry records the one disagreement the implementation follows shadPS4 on: for a room it does not know, RPCS3's PS3 module also writes inactive but returns
INVALID_ROOM_ID. Both names leave the "no credible prototypes" lists indocs/dev/debt/libSceNpMatching2.md.Tested
Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), Release,
BUILD_TESTING=ON, onmainc547deaacb. No title run: the importing title is a PS4 title, which needs #6977 to start.guest_np_matching2_offline(extended) andguest_np_ps4_imports: pass, 20 runs each on this head (ctest --repeat until-fail:10twice, with a rebuild in between).main's throwing bodies put back (same signatures, so the test compiles),guest_np_matching2_offlinefails withsceNpMatching2AbortContextStart not implemented(exit0xc0000409).public_headersandpublic_headers_compile_*: 65/65 pass.python tools/check_conventions.py --base origin/mainwith this title and body: all checks pass.python tools/pr_overlap.py --branch feat/npmatching2-signaling-status: no overlap. #11904 also adds checks toGuestNpMatching2Offline.cpp;git merge-treeof this head and its head5be476d442is clean.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)