feat(libSceNpManager, libSceNpAuth): implement the signed-out NP paths #346

Closed
elbreujeu wants to merge 1 commit from upstream-pr/346 into main
elbreujeu commented 2026-10-02 10:28:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by elbreujeu on 2026-10-02T10:28:57Z.


Implement the remaining NP account and request exports for a console without PSN: account queries and availability checks fail with SCE_NP_ERROR_SIGNED_OUT, request ids are handed out locally, the game presence callback and content restriction are recorded, and the auth wait reports the signed-out result. Add a functional guest test.

What

Tested

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 in TechnicalDebt
  • 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:
  • AI-assisted:
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4715389191 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/346). Originally posted by [elbreujeu](https://github.com/elbreujeu) on 2026-10-02T10:28:57Z. --- Implement the remaining NP account and request exports for a console without PSN: account queries and availability checks fail with SCE_NP_ERROR_SIGNED_OUT, request ids are handed out locally, the game presence callback and content restriction are recorded, and the auth wait reports the signed-out result. Add a functional guest test. ### What ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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 - [ ] Depends on: <!-- #PR, or none --> - [x] AI-assisted: <!-- yes / no -->
github-actions[bot] commented 2026-10-04 05:30:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T05:30:12Z.


Progress report (e1654a9 → 20ff2a1)

📈 System libraries: 81.0% (+0.24%, +7 implemented functions)

✅ 7 implemented
Library Name
libSceNpAuth sceNpAuthCreateRequest
libSceNpAuth sceNpAuthGetIdTokenV3
libSceNpAuth sceNpAuthWaitAsync
libSceNpManager sceNpCheckNpAvailability
libSceNpManager sceNpGetNpId
libSceNpManager sceNpRegisterGamePresenceCallback
libSceNpManager sceNpSetContentRestriction
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5976944049 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/346#issuecomment-5976944049). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-04T05:30:12Z. --- <!-- progress-report --> ### Progress report (e1654a9 → 20ff2a1) 📈 **System libraries**: 81.0% (+0.24%, +7 implemented functions) <details> <summary>✅ 7 implemented</summary> | Library | Name | | - | - | | libSceNpAuth | `sceNpAuthCreateRequest` | | libSceNpAuth | `sceNpAuthGetIdTokenV3` | | libSceNpAuth | `sceNpAuthWaitAsync` | | libSceNpManager | `sceNpCheckNpAvailability` | | libSceNpManager | `sceNpGetNpId` | | libSceNpManager | `sceNpRegisterGamePresenceCallback` | | libSceNpManager | `sceNpSetContentRestriction` | </details>
oneandonlydean commented 2026-10-04 05:42:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T05:42:07Z.


Thanks, the signed-out results fit what main already does for PollAsync and GetAuthorizationCodeV3, and CI is green on both jobs now. Could you fill in the template: the What and Tested sections are empty (the text is above them), and the last checklist line needs a yes or no. Also, the game presence callback, its user data and the content restriction are stored but never read; if nothing uses them, simply accepting the call would be clearer than keeping dead state.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5977016469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/346#issuecomment-5977016469). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T05:42:07Z. --- Thanks, the signed-out results fit what main already does for PollAsync and GetAuthorizationCodeV3, and CI is green on both jobs now. Could you fill in the template: the What and Tested sections are empty (the text is above them), and the last checklist line needs a yes or no. Also, the game presence callback, its user data and the content restriction are stored but never read; if nothing uses them, simply accepting the call would be clearer than keeping dead state.
github-actions[bot] commented 2026-10-06 20:12:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T20:12:11Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#924 core/libs/prx/libSceNpManager/CMakeLists.txt
core/libs/prx/libSceNpManager/Export.cpp L82-85
core/libs/prx/libSceNpManager/CMakeLists.txt
#925 core/libs/prx/libSceNpAuth/Export.cpp L26-27, L44-47, L57-60
#926 core/libs/prx/libSceNpManager/CMakeLists.txt
core/libs/prx/libSceNpManager/Export.cpp L82-85, L122-124, L152-154
core/libs/prx/libSceNpManager/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6024579403 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/346#issuecomment-6024579403). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T20:12:11Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #924 | `core/libs/prx/libSceNpManager/CMakeLists.txt` <br>`core/libs/prx/libSceNpManager/Export.cpp` [L82-85](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpManager/Export.cpp#L82-L85) | | `core/libs/prx/libSceNpManager/CMakeLists.txt` | | #925 | `core/libs/prx/libSceNpAuth/Export.cpp` [L26-27](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpAuth/Export.cpp#L26-L27), [L44-47](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpAuth/Export.cpp#L44-L47), [L57-60](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpAuth/Export.cpp#L57-L60) | | | | #926 | `core/libs/prx/libSceNpManager/CMakeLists.txt` <br>`core/libs/prx/libSceNpManager/Export.cpp` [L82-85](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpManager/Export.cpp#L82-L85), [L122-124](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpManager/Export.cpp#L122-L124), [L152-154](https://github.com/boykopovar/AnyPS5/blob/e79c971f99acd6987b1d6545e9ba57c00b11fe04/core/libs/prx/libSceNpManager/Export.cpp#L152-L154) | | `core/libs/prx/libSceNpManager/CMakeLists.txt` |
oneandonlydean commented 2026-10-06 21:20:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T21:20:45Z.


Is this still active? The template points from 10-04 are still open: What and Tested are empty, and the AI-assisted line needs a yes or no. Meanwhile #924, #925 and #926 cover the same functions. Which title calls these signed-out paths?

If you'd rather not continue, please say so, and the other PRs can take over.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025673428 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/346#issuecomment-6025673428). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T21:20:45Z. --- Is this still active? The template points from 10-04 are still open: What and Tested are empty, and the AI-assisted line needs a yes or no. Meanwhile #924, #925 and #926 cover the same functions. Which title calls these signed-out paths? If you'd rather not continue, please say so, and the other PRs can take over.
adriadam10 commented 2026-10-07 13:48:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T13:48:30Z.


Closing this one:

  • The review points from 2026-10-04 (empty What/Tested, the AI-assisted line, the stored-but-never-read presence callback, user data and content restriction) are still open, with no reply to either follow-up.
  • #924, #925 and #926 now cover the same exports, so review continues there.

Thanks for the work. Feel free to reopen if you'd like to continue: rebased, with the template filled and the dead state removed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6039351585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/346#issuecomment-6039351585). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-07T13:48:30Z. --- Closing this one: - The review points from 2026-10-04 (empty What/Tested, the AI-assisted line, the stored-but-never-read presence callback, user data and content restriction) are still open, with no reply to either follow-up. - #924, #925 and #926 now cover the same exports, so review continues there. Thanks for the work. Feel free to reopen if you'd like to continue: rebased, with the template filled and the dead state removed.

Pull request closed

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!346
No description provided.