feat(libSceNpCppWebApi): cover SessionManager PlayerSessionsApi and InGameCatalog ContainerApi imports #8959

Merged
akkadbakkad89 merged 6 commits from upstream-pr/8959 into main 2026-10-23 06:29:41 +00:00
akkadbakkad89 commented 2026-10-21 07:16:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T07:16:07Z.


What

198 more libSceNpCppWebApi exports, all imported by PPSA20397 (Assassin's Creed Shadows, recorded in the title's relinker registry; every name recomputes to the imported NID via tools/nid_names.py):

  • SessionManager::V1::PlayerSessionsApi verbs, ParameterTo* lifecycle, request/response model accessors
  • InGameCatalog::V5::ContainerApi + its parameters and response model accessors
  • Common helpers the title binds: IntrusivePtr ctors/dtor/deref/assign/copy over the new pointee types, Vector C1/D1/pushBack/empty/size/operator[], Iterator/ConstIterator dtors, Transaction/TransactionBase lifecycle, String::empty/operator==

Semantics follow the file's established offline model: request entry points and transaction IO fail SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; hasResponse honestly answers 0; parameter bookkeeping succeeds without keeping state. Vector::empty/size/operator[] read the host-created VectorBody (honest for bodies our pushBack grows; they throw on title-provided bodies whose element layout is unknown). Response accessors, iterators, Vector::begin/end/copyFrom and transaction abort/getId/operator= throw: a failed request never produces a response, and aborting or renumbering a transaction that never ran has no defined outcome. New stubs are documented in the library's debt file.

Tested

Linux x86_64, GCC 13 (g++ -fsyntax-only clean for Export.cpp). guest_np_cpp_web_api_string (the library's existing test) extended with three cases and run against the new code — all pass: String::empty/String::operator== semantics, Vector<IntrusivePtr<...JoinableUser>> ctor+pushBack+dtor lifecycle (body refcount, element refcount increment, element deleter on release), and the offline responses (Transaction::hasResponse = 0, PlayerSessionsApi::getPlayerSessions = 0x80552907).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA20397 #8674
  • GPUs tested: n/a
  • AI-assisted: yes

Overlap checked two ways: tools/pr_overlap.py --branch feat/np-webapi-session-ingc reports no overlap, and a NID-level comparison against #8561 (UserProfile/ProfanityFilter/CommunicationRestrictionStatus) shows it covers 64 other imports of the same title — disjoint from this set. The title itself still stops at the unrelated AGC stencil-replay gate before reaching these calls; this PR is pure import-coverage work on the recorded registry.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4947865763 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-21T07:16:07Z. --- ### What 198 more `libSceNpCppWebApi` exports, all imported by PPSA20397 (Assassin's Creed Shadows, recorded in the title's relinker registry; every name recomputes to the imported NID via `tools/nid_names.py`): - `SessionManager::V1::PlayerSessionsApi` verbs, `ParameterTo*` lifecycle, request/response model accessors - `InGameCatalog::V5::ContainerApi` + its parameters and response model accessors - `Common` helpers the title binds: `IntrusivePtr` ctors/dtor/deref/assign/copy over the new pointee types, `Vector` C1/D1/`pushBack`/`empty`/`size`/`operator[]`, `Iterator`/`ConstIterator` dtors, `Transaction`/`TransactionBase` lifecycle, `String::empty`/`operator==` Semantics follow the file's established offline model: request entry points and transaction IO fail `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`; `hasResponse` honestly answers 0; parameter bookkeeping succeeds without keeping state. `Vector::empty`/`size`/`operator[]` read the host-created `VectorBody` (honest for bodies our `pushBack` grows; they throw on title-provided bodies whose element layout is unknown). Response accessors, iterators, `Vector::begin`/`end`/`copyFrom` and transaction `abort`/`getId`/`operator=` throw: a failed request never produces a response, and aborting or renumbering a transaction that never ran has no defined outcome. New stubs are documented in the library's debt file. ### Tested Linux x86_64, GCC 13 (g++ `-fsyntax-only` clean for `Export.cpp`). `guest_np_cpp_web_api_string` (the library's existing test) extended with three cases and run against the new code — all pass: `String::empty`/`String::operator==` semantics, `Vector<IntrusivePtr<...JoinableUser>>` ctor+`pushBack`+dtor lifecycle (body refcount, element refcount increment, element deleter on release), and the offline responses (`Transaction::hasResponse` = 0, `PlayerSessionsApi::getPlayerSessions` = `0x80552907`). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA20397 #8674 - [x] GPUs tested: n/a - [x] AI-assisted: yes Overlap checked two ways: `tools/pr_overlap.py --branch feat/np-webapi-session-ingc` reports no overlap, and a NID-level comparison against #8561 (UserProfile/ProfanityFilter/CommunicationRestrictionStatus) shows it covers 64 *other* imports of the same title — disjoint from this set. The title itself still stops at the unrelated AGC stencil-replay gate before reaching these calls; this PR is pure import-coverage work on the recorded registry.
MarcZX10 commented 2026-10-21 07:37:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T07:37:42Z.

Code review location: core/libs/prx/libSceNpCppWebApi/Export.cpp; line 1925

@@ -1791,4 +1791,911 @@ int APS5_VABI _ZNK3sce2Np9CppWebApi17TitleCloudStorage2V15Owner12getAccountIdEv(
     NotImplemented_nid_no_patch(__func__);
     return 0;
 }
+
+// --------------------------------------------------------------------------
+// SessionManager2V1 PlayerSessionsApi + InGameCatalog2V5 ContainerApi and Common
+// container helpers imported by titles whose dumps lack libSceNpCppWebApi.prx:
+// request entry points and transactions fail SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN
+// offline; parameter bookkeeping succeeds; response accessors stay unimplemented.
+// --------------------------------------------------------------------------
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V149PostPlayerSessionsSessionIdInvitationsRequestBody14setInvitationsERKNS1_6Common6VectorINS5_12IntrusivePtrINS3_30RequestPlayerSessionInvitationEEEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28sendPlayerSessionInvitationsEiRKNS4_39ParameterToSendPlayerSessionInvitationsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_50PostPlayerSessionsSessionIdInvitationsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi17getPlayerSessionsEiRKNS4_28ParameterToGetPlayerSessionsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_29GetPlayerSessionsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData2EPKvm() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_60PostPlayerSessionsSessionIdJoinableSpecifiedUsersRequestBodyEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionProperties10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi36ParameterToChangePlayerSessionLeader9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesC1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData1EPKvm() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData2IsSetEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesD1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitations10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_49PostPlayerSessionsSessionIdInvitationsRequestBodyEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V146PatchPlayerSessionsSessionIdRequestBodyFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V137RequestPlayerSessionInvitationFactory6createEPNS1_6Common10LibContextENS5_12IntrusivePtrINS3_2ToEEEPNS8_INS3_30RequestPlayerSessionInvitationEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V139PatchPlayerSessionsSessionIdRequestBody19setJoinableUserTypeERKNS3_22CustomJoinableUserTypeE() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V127ResponsePlayerSessionPlayer11getPlatformEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9setfieldsENS1_6Common12IntrusivePtrINS6_6VectorINS6_6StringEEEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi29ParameterToLeavePlayerSession9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsD1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead14getCustomData1Ev() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi31ParameterToCreatePlayerSessions9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData1IsSetEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi38addPlayerSessionJoinableSpecifiedUsersEiRKNS4_49ParameterToAddPlayerSessionJoinableSpecifiedUsersERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_61PostPlayerSessionsSessionIdJoinableSpecifiedUsersResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead9getLeaderEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsC1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessionsD1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead28getExclusiveLeaderPrivilegesEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi26setPlayerSessionPropertiesEiRKNS4_37ParameterToSetPlayerSessionPropertiesERNS1_6Common11TransactionINS8_15DefaultResponseENS8_12IntrusivePtrINS8_18ResponseHeaderBaseEEEEE() {
+    return 0;

This mutating request currently reports success while the PR body and debt entry say offline API calls fail with SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN. Could this return the offline error like changePlayerSessionLeader and the other request entry points? Returning 0 makes the caller believe the player-session properties were updated even though no request was sent.

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4334203200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#discussion_r4334203200). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T07:37:42Z. **Code review location:** `core/libs/prx/libSceNpCppWebApi/Export.cpp`; line 1925 ~~~~diff @@ -1791,4 +1791,911 @@ int APS5_VABI _ZNK3sce2Np9CppWebApi17TitleCloudStorage2V15Owner12getAccountIdEv( NotImplemented_nid_no_patch(__func__); return 0; } + +// -------------------------------------------------------------------------- +// SessionManager2V1 PlayerSessionsApi + InGameCatalog2V5 ContainerApi and Common +// container helpers imported by titles whose dumps lack libSceNpCppWebApi.prx: +// request entry points and transactions fail SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN +// offline; parameter bookkeeping succeeds; response accessors stay unimplemented. +// -------------------------------------------------------------------------- + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V149PostPlayerSessionsSessionIdInvitationsRequestBody14setInvitationsERKNS1_6Common6VectorINS5_12IntrusivePtrINS3_30RequestPlayerSessionInvitationEEEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28sendPlayerSessionInvitationsEiRKNS4_39ParameterToSendPlayerSessionInvitationsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_50PostPlayerSessionsSessionIdInvitationsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi17getPlayerSessionsEiRKNS4_28ParameterToGetPlayerSessionsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_29GetPlayerSessionsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData2EPKvm() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_60PostPlayerSessionsSessionIdJoinableSpecifiedUsersRequestBodyEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionProperties10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi36ParameterToChangePlayerSessionLeader9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesC1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData1EPKvm() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData2IsSetEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesD1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitations10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_49PostPlayerSessionsSessionIdInvitationsRequestBodyEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V146PatchPlayerSessionsSessionIdRequestBodyFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V137RequestPlayerSessionInvitationFactory6createEPNS1_6Common10LibContextENS5_12IntrusivePtrINS3_2ToEEEPNS8_INS3_30RequestPlayerSessionInvitationEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V139PatchPlayerSessionsSessionIdRequestBody19setJoinableUserTypeERKNS3_22CustomJoinableUserTypeE() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V127ResponsePlayerSessionPlayer11getPlatformEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9setfieldsENS1_6Common12IntrusivePtrINS6_6VectorINS6_6StringEEEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi29ParameterToLeavePlayerSession9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsD1Ev() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead14getCustomData1Ev() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi31ParameterToCreatePlayerSessions9terminateEv() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData1IsSetEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi38addPlayerSessionJoinableSpecifiedUsersEiRKNS4_49ParameterToAddPlayerSessionJoinableSpecifiedUsersERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_61PostPlayerSessionsSessionIdJoinableSpecifiedUsersResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead9getLeaderEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsC1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessionsD1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead28getExclusiveLeaderPrivilegesEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi26setPlayerSessionPropertiesEiRKNS4_37ParameterToSetPlayerSessionPropertiesERNS1_6Common11TransactionINS8_15DefaultResponseENS8_12IntrusivePtrINS8_18ResponseHeaderBaseEEEEE() { + return 0; ~~~~ --- This mutating request currently reports success while the PR body and debt entry say offline API calls fail with `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`. Could this return the offline error like `changePlayerSessionLeader` and the other request entry points? Returning 0 makes the caller believe the player-session properties were updated even though no request was sent.
MarcZX10 commented 2026-10-21 07:46:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T07:46:49Z.

Review: CHANGES_REQUESTED


Requesting one correction before approval: PlayerSessionsApi::setPlayerSessionProperties returns success (0) while the PR describes offline request entry points as returning SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN. Please make this mutation consistent with the other PlayerSessionsApi request methods. I left an inline note on the implementation. The open overlap with #4278 also still needs the superseded/merge-order clarification from my earlier comment.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5596483261 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#pullrequestreview-5596483261). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T07:46:49Z. **Review:** CHANGES_REQUESTED --- Requesting one correction before approval: `PlayerSessionsApi::setPlayerSessionProperties` returns success (`0`) while the PR describes offline request entry points as returning `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN`. Please make this mutation consistent with the other PlayerSessionsApi request methods. I left an inline note on the implementation. The open overlap with #4278 also still needs the superseded/merge-order clarification from my earlier comment.
akkadbakkad89 commented 2026-10-21 07:55:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T07:55:13Z.


Fixed in 5e4ebeda — setPlayerSessionProperties is a mutating request entry point, not a parameter setter; it now returns SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN like changePlayerSessionLeader. I also re-audited every direct *Api member in the set — all five request verbs (sendPlayerSessionInvitations, getPlayerSessions, addPlayerSessionJoinableSpecifiedUsers, setPlayerSessionProperties, changePlayerSessionLeader) return the offline error; the remaining set* exports are ParameterTo*/RequestBody* bookkeeping, not request entry points.

On the overlap flag (#8264, #8561, #8843): the export sets are disjoint at the NID level — this PR's 198 imports were computed from the title's relinker registry minus everything already covered. #8561 covers the 64 UserProfile/ProfanityFilter/CommunicationRestrictionStatus imports (deliberately excluded here), #8264 covers 37 unrelated aerolib exports (none in this set), and #8843 is signature-alignment on existing stubs. The flagged collisions are textual only (same debt-file region, same Export.cpp tail) — whichever lands second rebases a few lines; no functional supersession. Happy to rebase on whichever goes first if a specific order is preferred.

Re: #4278 — I can't find an earlier comment on this PR referencing it (it resolves to a shader perf PR); if you meant another ticket, point me at it and I'll address it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310982692 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#issuecomment-6310982692). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-21T07:55:13Z. --- Fixed in 5e4ebeda — `setPlayerSessionProperties` is a mutating request entry point, not a parameter setter; it now returns `SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN` like `changePlayerSessionLeader`. I also re-audited every direct `*Api` member in the set — all five request verbs (`sendPlayerSessionInvitations`, `getPlayerSessions`, `addPlayerSessionJoinableSpecifiedUsers`, `setPlayerSessionProperties`, `changePlayerSessionLeader`) return the offline error; the remaining `set*` exports are `ParameterTo*`/`RequestBody*` bookkeeping, not request entry points. On the overlap flag (#8264, #8561, #8843): the export sets are disjoint at the NID level — this PR's 198 imports were computed from the title's relinker registry minus everything already covered. #8561 covers the 64 UserProfile/ProfanityFilter/CommunicationRestrictionStatus imports (deliberately excluded here), #8264 covers 37 unrelated aerolib exports (none in this set), and #8843 is signature-alignment on existing stubs. The flagged collisions are textual only (same debt-file region, same Export.cpp tail) — whichever lands second rebases a few lines; no functional supersession. Happy to rebase on whichever goes first if a specific order is preferred. Re: #4278 — I can't find an earlier comment on this PR referencing it (it resolves to a shader perf PR); if you meant another ticket, point me at it and I'll address it.
MarcZX10 commented 2026-10-21 08:05:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T08:05:04Z.

Code review location: core/libs/prx/libSceNpCppWebApi/Export.cpp; line 1925

@@ -1791,4 +1791,911 @@ int APS5_VABI _ZNK3sce2Np9CppWebApi17TitleCloudStorage2V15Owner12getAccountIdEv(
     NotImplemented_nid_no_patch(__func__);
     return 0;
 }
+
+// --------------------------------------------------------------------------
+// SessionManager2V1 PlayerSessionsApi + InGameCatalog2V5 ContainerApi and Common
+// container helpers imported by titles whose dumps lack libSceNpCppWebApi.prx:
+// request entry points and transactions fail SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN
+// offline; parameter bookkeeping succeeds; response accessors stay unimplemented.
+// --------------------------------------------------------------------------
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V149PostPlayerSessionsSessionIdInvitationsRequestBody14setInvitationsERKNS1_6Common6VectorINS5_12IntrusivePtrINS3_30RequestPlayerSessionInvitationEEEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28sendPlayerSessionInvitationsEiRKNS4_39ParameterToSendPlayerSessionInvitationsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_50PostPlayerSessionsSessionIdInvitationsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi17getPlayerSessionsEiRKNS4_28ParameterToGetPlayerSessionsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_29GetPlayerSessionsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData2EPKvm() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_60PostPlayerSessionsSessionIdJoinableSpecifiedUsersRequestBodyEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionProperties10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi36ParameterToChangePlayerSessionLeader9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesC1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData1EPKvm() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData2IsSetEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesD1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitations10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_49PostPlayerSessionsSessionIdInvitationsRequestBodyEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V146PatchPlayerSessionsSessionIdRequestBodyFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V137RequestPlayerSessionInvitationFactory6createEPNS1_6Common10LibContextENS5_12IntrusivePtrINS3_2ToEEEPNS8_INS3_30RequestPlayerSessionInvitationEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V139PatchPlayerSessionsSessionIdRequestBody19setJoinableUserTypeERKNS3_22CustomJoinableUserTypeE() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V127ResponsePlayerSessionPlayer11getPlatformEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9setfieldsENS1_6Common12IntrusivePtrINS6_6VectorINS6_6StringEEEEE() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi29ParameterToLeavePlayerSession9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsD1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead14getCustomData1Ev() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi31ParameterToCreatePlayerSessions9terminateEv() {
+    return 0;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData1IsSetEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi38addPlayerSessionJoinableSpecifiedUsersEiRKNS4_49ParameterToAddPlayerSessionJoinableSpecifiedUsersERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_61PostPlayerSessionsSessionIdJoinableSpecifiedUsersResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;
+}
+
+int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead9getLeaderEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsC1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessionsD1Ev() {
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead28getExclusiveLeaderPrivilegesEv() {
+    NotImplemented_nid_no_patch(__func__);
+    return 0;
+}
+
+int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi26setPlayerSessionPropertiesEiRKNS4_37ParameterToSetPlayerSessionPropertiesERNS1_6Common11TransactionINS8_15DefaultResponseENS8_12IntrusivePtrINS8_18ResponseHeaderBaseEEEEE() {
+    return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN;

The corrected return now matches the documented offline behavior. Could you add a direct assertion for setPlayerSessionProperties to TestOfflineResponses as well? That test currently exercises getPlayerSessions, so the original accidental success return would not have been caught by the regression suite.

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4334424639 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#discussion_r4334424639). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T08:05:04Z. **Code review location:** `core/libs/prx/libSceNpCppWebApi/Export.cpp`; line 1925 ~~~~diff @@ -1791,4 +1791,911 @@ int APS5_VABI _ZNK3sce2Np9CppWebApi17TitleCloudStorage2V15Owner12getAccountIdEv( NotImplemented_nid_no_patch(__func__); return 0; } + +// -------------------------------------------------------------------------- +// SessionManager2V1 PlayerSessionsApi + InGameCatalog2V5 ContainerApi and Common +// container helpers imported by titles whose dumps lack libSceNpCppWebApi.prx: +// request entry points and transactions fail SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN +// offline; parameter bookkeeping succeeds; response accessors stay unimplemented. +// -------------------------------------------------------------------------- + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V149PostPlayerSessionsSessionIdInvitationsRequestBody14setInvitationsERKNS1_6Common6VectorINS5_12IntrusivePtrINS3_30RequestPlayerSessionInvitationEEEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28sendPlayerSessionInvitationsEiRKNS4_39ParameterToSendPlayerSessionInvitationsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_50PostPlayerSessionsSessionIdInvitationsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi17getPlayerSessionsEiRKNS4_28ParameterToGetPlayerSessionsERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_29GetPlayerSessionsResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData2EPKvm() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_60PostPlayerSessionsSessionIdJoinableSpecifiedUsersRequestBodyEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionProperties10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi36ParameterToChangePlayerSessionLeader9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesC1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi49ParameterToAddPlayerSessionJoinableSpecifiedUsers9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120RequestPlayerSession14setCustomData1EPKvm() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData2IsSetEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi37ParameterToSetPlayerSessionPropertiesD1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitations10initializeEPNS1_6Common10LibContextEPKcNS6_12IntrusivePtrINS3_49PostPlayerSessionsSessionIdInvitationsRequestBodyEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V146PatchPlayerSessionsSessionIdRequestBodyFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_39PatchPlayerSessionsSessionIdRequestBodyEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V137RequestPlayerSessionInvitationFactory6createEPNS1_6Common10LibContextENS5_12IntrusivePtrINS3_2ToEEEPNS8_INS3_30RequestPlayerSessionInvitationEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V139PatchPlayerSessionsSessionIdRequestBody19setJoinableUserTypeERKNS3_22CustomJoinableUserTypeE() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V127ResponsePlayerSessionPlayer11getPlatformEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9setfieldsENS1_6Common12IntrusivePtrINS6_6VectorINS6_6StringEEEEE() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessions9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi29ParameterToLeavePlayerSession9terminateEv() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsD1Ev() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead14getCustomData1Ev() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi31ParameterToCreatePlayerSessions9terminateEv() { + return 0; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead16customData1IsSetEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi38addPlayerSessionJoinableSpecifiedUsersEiRKNS4_49ParameterToAddPlayerSessionJoinableSpecifiedUsersERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_61PostPlayerSessionsSessionIdJoinableSpecifiedUsersResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; +} + +int APS5_VABI _ZNK3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead9getLeaderEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi39ParameterToSendPlayerSessionInvitationsC1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi28ParameterToGetPlayerSessionsD1Ev() { + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V120PlayerSessionForRead28getExclusiveLeaderPrivilegesEv() { + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI _ZN3sce2Np9CppWebApi14SessionManager2V117PlayerSessionsApi26setPlayerSessionPropertiesEiRKNS4_37ParameterToSetPlayerSessionPropertiesERNS1_6Common11TransactionINS8_15DefaultResponseENS8_12IntrusivePtrINS8_18ResponseHeaderBaseEEEEE() { + return SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; ~~~~ --- The corrected return now matches the documented offline behavior. Could you add a direct assertion for `setPlayerSessionProperties` to `TestOfflineResponses` as well? That test currently exercises `getPlayerSessions`, so the original accidental success return would not have been caught by the regression suite.
akkadbakkad89 commented 2026-10-21 08:16:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T08:16:34Z.


Done in 7b5594a5 — TestOfflineResponses now asserts setPlayerSessionProperties returns SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN alongside getPlayerSessions, so a future success-return regression on a mutating verb is caught. Also fixed the hasResponse extern (V129 -> V130PostPlayerSessionsResponseBody) which had drifted from the exported symbol. Compiled and ran locally: all 8 sub-tests pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6311356952 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#issuecomment-6311356952). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-21T08:16:34Z. --- Done in 7b5594a5 — TestOfflineResponses now asserts setPlayerSessionProperties returns SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN alongside getPlayerSessions, so a future success-return regression on a mutating verb is caught. Also fixed the hasResponse extern (V129 -> V130PostPlayerSessionsResponseBody) which had drifted from the exported symbol. Compiled and ran locally: all 8 sub-tests pass.
MarcZX10 commented 2026-10-21 22:39:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T22:39:39Z.

Review: APPROVED


Reviewed the current head, including the latest ParameterToGetContainer lifecycle and getContainer change. The earlier offline error finding is fixed, the follow-up adds a regression assertion for setPlayerSessionProperties, and both review threads are resolved. I found no remaining blocking correctness issue in the reviewed diff.

Local validation on this head: c++ -std=c++20 -fsyntax-only passed for Export.cpp and GuestNpCppWebApiString.cpp; I linked and ran the focused test executable, and it passed. The full CMake test configuration could not be generated in this environment because the SDL2 submodule sources are absent and the host lacks the required SDL XRandR development support. Hosted eligibility, conventions, labels, and report checks are green; the build jobs were skipped by path rules.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607096606 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#pullrequestreview-5607096606). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T22:39:39Z. **Review:** APPROVED --- Reviewed the current head, including the latest `ParameterToGetContainer` lifecycle and `getContainer` change. The earlier offline error finding is fixed, the follow-up adds a regression assertion for `setPlayerSessionProperties`, and both review threads are resolved. I found no remaining blocking correctness issue in the reviewed diff. Local validation on this head: `c++ -std=c++20 -fsyntax-only` passed for `Export.cpp` and `GuestNpCppWebApiString.cpp`; I linked and ran the focused test executable, and it passed. The full CMake test configuration could not be generated in this environment because the SDL2 submodule sources are absent and the host lacks the required SDL XRandR development support. Hosted eligibility, conventions, labels, and report checks are green; the build jobs were skipped by path rules.
Ondra97 commented 2026-10-22 04:30:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T04:30:58Z.


I opened #9612 to preserve aliased inputs in the existing Common::String::append and Common::Vector::pushBack helpers. Its tests add cases after TestVectorPushBackCopiesStringContent in GuestNpCppWebApiString.cpp, where this PR also adds tests. The export changes are separate. I declared #9612 dependent on #8959 and #9015, which is already stacked on #8959, and will reconcile the test insertion in that order.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332742104 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#issuecomment-6332742104). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-22T04:30:58Z. --- I opened #9612 to preserve aliased inputs in the existing `Common::String::append` and `Common::Vector::pushBack` helpers. Its tests add cases after `TestVectorPushBackCopiesStringContent` in `GuestNpCppWebApiString.cpp`, where this PR also adds tests. The export changes are separate. I declared #9612 dependent on #8959 and #9015, which is already stacked on #8959, and will reconcile the test insertion in that order.
MarcZX10 commented 2026-10-23 05:19:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T05:19:18Z.

Review: CHANGES_REQUESTED


The latest implementation corrects the three issues identified in the thread: the six copy constructors now retain their source pointer, the four Vector<IntrusivePtr<...>> operations use the 0x30 reference-count field, and empty-string equality matches c_str(). I checked the exact 19-line source correction, local diff whitespace and conventions; both pass. I found no new source defect in those corrections.

Two items still prevent approval:

  1. The new copy-constructor/refcount fixes have no regression assertion in the current diff. The existing three focused cases cover String, Vector::pushBack, and offline responses, but do not copy one of these affected IntrusivePtr objects and verify both its pointer and reference count at offset 0x00 or 0x30. Please add a focused check (coordinate its insertion with #9612's test changes) or provide an exact-head standalone regression run that proves those cases.
  2. tools/check_main_sync.py --base upstream/main --head <head> reports 6 commits ahead / 53 behind current upstream/main (merge base f4b2f7907), though the merge is clean. CONTRIBUTING requires branches kept current. Please merge current main and rerun the focused string/API tests and conventions on the resulting head.

The prior approval was on d3e68ab, before the copy/refcount corrections, so it does not cover this head. The Windows/Linux test results from earlier heads are not presented as reruns of these latest changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624207021 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8959#pullrequestreview-5624207021). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T05:19:18Z. **Review:** CHANGES_REQUESTED --- The latest implementation corrects the three issues identified in the thread: the six copy constructors now retain their source pointer, the four `Vector<IntrusivePtr<...>>` operations use the `0x30` reference-count field, and empty-string equality matches `c_str()`. I checked the exact 19-line source correction, local diff whitespace and conventions; both pass. I found no new source defect in those corrections. Two items still prevent approval: 1. The new copy-constructor/refcount fixes have no regression assertion in the current diff. The existing three focused cases cover `String`, `Vector::pushBack`, and offline responses, but do not copy one of these affected `IntrusivePtr` objects and verify both its pointer and reference count at offset `0x00` or `0x30`. Please add a focused check (coordinate its insertion with #9612's test changes) or provide an exact-head standalone regression run that proves those cases. 2. `tools/check_main_sync.py --base upstream/main --head <head>` reports 6 commits ahead / 53 behind current `upstream/main` (merge base `f4b2f7907`), though the merge is clean. CONTRIBUTING requires branches kept current. Please merge current main and rerun the focused string/API tests and conventions on the resulting head. The prior approval was on `d3e68ab`, before the copy/refcount corrections, so it does not cover this head. The Windows/Linux test results from earlier heads are not presented as reruns of these latest changes.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!8959
No description provided.