feat(libSceNpManager): answer four more calls offline #2398
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2398"
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 NahuelGenchi on 2026-10-09T18:05:40Z.
What
Four libSceNpManager exports still threw as not implemented, although the rest of the library already answers as a signed-out console. This gives them the same offline behaviour.
sceNpCheckNpAvailabilitytakes the request id and an online id. A null online id is rejected, and since no user here has an online id the call reportsSCE_NP_ERROR_USER_NOT_FOUND.sceNpGetUserIdByAccountIdtakes an account id and an output user id; account 0 or a null output is rejected and anything else reportsSCE_NP_ERROR_SIGNED_OUT, likesceNpGetAccountIdAdoes.sceNpSetContentRestrictionchecks the structure (size, default age, the count and the age list pointer) and accepts it.sceNpRegisterGamePresenceCallbackkeeps the last callback, which is never called because there are no presence updates offline. The previoussceNpCheckNpAvailabilitydeclaration took aconst char*, it is now theNpOnlineIdpointer, andNpContentRestrictionand a newNpAgeRestrictiongot their real layout instead of an opaque 128 byte blob.The error values, the argument checks and the structure layout come from shadPS4's np_manager (commit linked in the technical debt entry); none of it was measured on a console, so it is recorded there. The entry for exports declared without parameters no longer lists NpManager.
Tested
Ubuntu 26.04, GCC 15.2.
guest_np_managernow covers the four calls, including each rejected argument case and that the output user id stays untouched. The system library count goes from 2578 to 2582 intools/progress.py. The convention, overlap and test registration checks pass. Not run on Windows locally, so the Windows job is the first run there.Checklist
main; no other open PR implements the same functionsNotImplemented_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-09T18:05:50Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T18:06:03Z.
Progress report (
f8c2f07→90fc193)📈 System libraries: 84.82% (+0.13%, +4 implemented functions)
✅ 4 implemented
sceNpCheckNpAvailabilitysceNpGetUserIdByAccountIdsceNpRegisterGamePresenceCallbacksceNpSetContentRestrictionPull request closed