You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(libSceNpCppWebApi): implement session leader account ID accessor - #15808
SessionManager2V1::LeaderWithOnlineId::getAccountId (sW6h+-un80k) now returns the model's full 64-bit account ID. It previously threw and had a placeholder int() declaration. The declaration and definition now take the implicit object as const void* and return std::uint64_t; memcpy reads the word without imposing host alignment or aliasing assumptions.
Static, NID-resolved comparison of the normalized libSceNpCppWebApi modules bundled with PPSA21564 and PPSA05347 shows the same complete five-byte getter: an unconditional 64-bit load from object+0x10 and return, with no calls or writes. The compiled Release implementation is byte-identical to both. Original container/normalized ELF/function hashes are in the evidence; no SDK binaries or extracted instructions are published. This is static reference analysis, not a console measurement or execution of the original modules.
The debt note records why nearby model fields still need investigation: PlayerSessionForRead::customData1IsSet has different offsets in those two modules (+0x1a0/+0x1e0). This patch adds no model construction, online response production, title unblock or performance claim.
Tested
Arch Linux x86-64, GCC 16.2.1, Release. Base main b11c7bf84f5d2f636ff60166cc3371bd071e24d5, change e3640c5c860e4490a1c974b4ae73de9ecefc1050.
Main and change: all 11 NpCppWebApi CTest groups pass, zero skips. The updated matchmaking fixture checks seven account IDs (including zero, values above 32 bits, the high bit and all bits set) and unchanged object/guard bytes.
Negative control: that new fixture against main's library fails at this exact export's not implemented refusal.
Build scope: a scoped CMake harness includes the repository's current NpCppWebApi CMakeLists.txt and the three root-registered fixture owners, reusing an existing libc provider whose hash is recorded. This is not a fresh whole-project rebuild. An initial incomplete harness omitted an alias test's owning executable; that run is excluded and preserved, and both qualified arms include it.
Windows and title execution: not run for this change. No GPU execution or FPS claim.
Overlap: checked 1,876 open heads. No confirmed duplicate/overlap was reported. The tool failed closed for #13486's inherited NpCppWebApi changes and #14212's debt formatting. I inspected the still-refusing account getter in #13486 and compared main+peer against change+peer for both branches; reversing only this topic's exact unique text blocks leaves their pre-existing merge conflicts unchanged (only conflict-label lines normalized). Those comparison receipts are attached; no combined runtime result is claimed. Related accessor stacks #14122/#14136/#14273 also still refuse this getter at their inspected heads and are not dependencies.
Checklist
Based on current main; no other open PR implements the same functions
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
Checked the getter against the other getAccountId accessors in Api.hpp, the new fixture (seven values, object bytes unchanged; it fails on main at the not implemented refusal) and the Windows run above. One fix added as our own commit: the debt entry opened a second ### Functional header in docs/dev/debt/libSceNpCppWebApi.md, so it now sits under the existing one. Rebased onto current main, full scoped build and tests green; merged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
SessionManager2V1::LeaderWithOnlineId::getAccountId(sW6h+-un80k) now returns the model's full 64-bit account ID. It previously threw and had a placeholderint()declaration. The declaration and definition now take the implicit object asconst void*and returnstd::uint64_t;memcpyreads the word without imposing host alignment or aliasing assumptions.Static, NID-resolved comparison of the normalized
libSceNpCppWebApimodules bundled with PPSA21564 and PPSA05347 shows the same complete five-byte getter: an unconditional 64-bit load from object+0x10 and return, with no calls or writes. The compiled Release implementation is byte-identical to both. Original container/normalized ELF/function hashes are in the evidence; no SDK binaries or extracted instructions are published. This is static reference analysis, not a console measurement or execution of the original modules.The debt note records why nearby model fields still need investigation:
PlayerSessionForRead::customData1IsSethas different offsets in those two modules (+0x1a0/+0x1e0). This patch adds no model construction, online response production, title unblock or performance claim.Tested
Arch Linux x86-64, GCC 16.2.1, Release. Base main
b11c7bf84f5d2f636ff60166cc3371bd071e24d5, changee3640c5c860e4490a1c974b4ae73de9ecefc1050.not implementedrefusal.CMakeLists.txtand the three root-registered fixture owners, reusing an existinglibcprovider whose hash is recorded. This is not a fresh whole-project rebuild. An initial incomplete harness omitted an alias test's owning executable; that run is excluded and preserved, and both qualified arms include it.Reference summaries, source diff, compiled-function comparison, build recipe, full logs and negative control, SHA-256
176f616f874b48084cbab63e3a12cb09f211ce505fc609f687cf7755e9459a51.Overlap: checked 1,876 open heads. No confirmed duplicate/overlap was reported. The tool failed closed for #13486's inherited NpCppWebApi changes and #14212's debt formatting. I inspected the still-refusing account getter in #13486 and compared main+peer against change+peer for both branches; reversing only this topic's exact unique text blocks leaves their pre-existing merge conflicts unchanged (only conflict-label lines normalized). Those comparison receipts are attached; no combined runtime result is claimed. Related accessor stacks #14122/#14136/#14273 also still refuse this getter at their inspected heads and are not dependencies.
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)