feat(libSceNpManager): implement sceNpGetNpId #924
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/924"
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 Adin-bima on 2026-10-06T17:18:48Z.
What
Implements
sceNpGetNpIdin libSceNpManager. PSN is not emulated, so likesceNpGetOnlineIdandsceNpGetAccountIdAit returnsSCE_NP_ERROR_SIGNED_OUTand leaves theNpIduntouched; a nullNpIdreturnsSCE_NP_ERROR_INVALID_ARGUMENT. This matches shadPS4 when the user is not signed in and prosper. The invalid-user-id branch shadPS4 selects by firmware version is not modelled, as the other identity getters here do not check the user id either.libSceNpManager gets its own
CMakeLists.txt(same shape as libSceNpSessionSignaling) to register the newguest_np_managertest.Tested
Linux (GCC), new
guest_np_managertest: signed-out result with theNpIdunchanged, invalid argument for a nullNpId. Fullctest: 358/360 passed;agc_driver_lds_atomics64andagc_driver_scalar_sop1fail the same way on unmodifiedmainon this machine (RTX 5070 Ti). Not tested with a title.Checklist
main; no other open PR implements the same functions — #346 (opened earlier) implements the same functions; this is offered as a replacement if #346 is not continuedNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T20:28:41Z.
Progress report (
5895ea7→953e6ce)📈 System libraries: 87.03% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNpGetNpIdImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T20:48:17Z.
Checked the build and ctest (402/402,
guest_np_managerfails without the Export.cpp change), and the result codes and untouchedNpIdagainst shadPS4 and prosper; consistent withsceNpGetOnlineId/sceNpGetAccountIdA. Merging.