feat(libSceNpCppWebApi): bring up the SessionManager friends player sessions family #13255
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13255"
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 edubox on 2026-10-30T08:14:14Z.
What
Implement the 45 exports imported for
SessionManager::V1::PlayerSessionsApi::getFriendsPlayerSessionsthat were still missing:ParameterToGetFriendsPlayerSessionslifecycle (C1,D1,initialize,terminate).getFriendsPlayerSessions, theTransactionandTransactionBaseentry points.Friend,FriendJoinedPlayerSessionandGetFriendsPlayerSessionsResponseBodyaccessors.IntrusivePtr,VectorandConstIteratorhelpers used by this family.The model layouts come from the module bundled with the titles (build J03341606):
Friendstores account id at+0x10,accountIdIsSetat+0x18,IntrusivePtr<Vector<FriendJoinedPlayerSession>>at+0x30andplayerSessionsIsSetat+0x48;FriendJoinedPlayerSessionstoresString sessionIdat+0x10andsessionIdIsSetat+0x30; the response body storesIntrusivePtr<Vector<Friend>>at+0x30. The vector views use the real inline layout (begin+0x18, end+0x28, refcount+0x30, 0x18-byte elements) and the iterator is{int32 referenceCount; void* element}.The transaction is 0x10 bytes: its constructor zeroes both words.
TransactionBase::startreturns0x80553503for a null context,0x80553502for an uninitialized context and thenSCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;finishreturns0x80553508.getResponseandgetFriendsPlayerSessionsreturn0x80553508while the two transaction words are zero (unstarted), andSCE_NP_WEBAPI_ERROR_NOT_SIGNED_INonce the transaction is started; no response object is produced.Tested
ctest --test-dir build -R guest_np_cpp_web_api: 8/8 passed, including the newguest_np_cpp_web_api_friends.start/getResponse/API errors (with a prefilled transaction and an unchanged output sentinel), model getters,IntrusivePtrcopy/destroy, the inline vector layout, iterator traversal andgetFriends/getPlayerSessionscopy/add-ref.python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch feat/npcpp-friends-sessions --jobs 32: no overlap.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)