feat(libSceNpManager): implement sceNpCheckNpAvailability #974

Closed
Kikoarl wants to merge 1 commit from upstream-pr/974 into main
Kikoarl commented 2026-10-06 20:57:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T20:57:37Z.


What

Implement sceNpCheckNpAvailability in libSceNpManager returning SCE_NP_ERROR_SIGNED_OUT, matching sceNpCheckNpReachability and offline reachability checks.

Tested

Linux x86_64, GCC Release build:

  • Built libs and guest_np_manager_tests.
  • ctest -R guest_np_manager passes. Added unit tests in GuestNpManager.cpp.

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: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4764562975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/974). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T20:57:37Z. --- ### What Implement `sceNpCheckNpAvailability` in `libSceNpManager` returning `SCE_NP_ERROR_SIGNED_OUT`, matching `sceNpCheckNpReachability` and offline reachability checks. ### Tested Linux x86_64, GCC Release build: - Built `libs` and `guest_np_manager_tests`. - `ctest -R guest_np_manager` passes. Added unit tests in `GuestNpManager.cpp`. ### Checklist - [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 - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-06 21:17:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T21:17:01Z.


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
#346 core/libs/prx/libSceNpManager/CMakeLists.txt
core/libs/prx/libSceNpManager/Export.cpp L28-32
core/libs/prx/libSceNpManager/CMakeLists.txt
#924 core/libs/tests/GuestNpManager.cpp core/libs/prx/libSceNpManager/CMakeLists.txt
core/libs/tests/GuestNpManager.cpp
#926 core/libs/tests/GuestNpManager.cpp core/libs/prx/libSceNpManager/CMakeLists.txt
core/libs/tests/GuestNpManager.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025616102 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/974#issuecomment-6025616102). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T21:17:01Z. --- <!-- 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 | |---|---|---|---| | #346 | `core/libs/prx/libSceNpManager/CMakeLists.txt` <br>`core/libs/prx/libSceNpManager/Export.cpp` [L28-32](https://github.com/boykopovar/AnyPS5/blob/5fc8755f4cd77abfa5a9565b1329bf5efdf4f54e/core/libs/prx/libSceNpManager/Export.cpp#L28-L32) | | `core/libs/prx/libSceNpManager/CMakeLists.txt` | | #924 | `core/libs/tests/GuestNpManager.cpp` | | `core/libs/prx/libSceNpManager/CMakeLists.txt`<br>`core/libs/tests/GuestNpManager.cpp` | | #926 | `core/libs/tests/GuestNpManager.cpp` | | `core/libs/prx/libSceNpManager/CMakeLists.txt`<br>`core/libs/tests/GuestNpManager.cpp` |
github-actions[bot] commented 2026-10-06 21:20:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T21:20:13Z.


Progress report (5b35909 → 022c8f5)

📈 System libraries: 87.03% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpManager sceNpCheckNpAvailability
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025665003 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/974#issuecomment-6025665003). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T21:20:13Z. --- <!-- progress-report --> ### Progress report (5b35909 → 022c8f5) 📈 **System libraries**: 87.03% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpManager | `sceNpCheckNpAvailability` | </details>
oneandonlydean commented 2026-10-06 22:03:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T22:03:00Z.


Thanks. #346 already returns SCE_NP_ERROR_SIGNED_OUT from sceNpCheckNpAvailability, with a test, and it adds its own libSceNpManager/CMakeLists.txt, so the two collide. The new GuestNpManager.cpp here also collides with the one #924 and #926 add. I'm closing this one as a duplicate so the NpManager work stays in one place. No title has been named for it either.

If #346 is closed without landing and a title needs this call, please reopen with the title ID.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026273907 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/974#issuecomment-6026273907). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T22:03:00Z. --- Thanks. #346 already returns `SCE_NP_ERROR_SIGNED_OUT` from `sceNpCheckNpAvailability`, with a test, and it adds its own `libSceNpManager/CMakeLists.txt`, so the two collide. The new `GuestNpManager.cpp` here also collides with the one #924 and #926 add. I'm closing this one as a duplicate so the NpManager work stays in one place. No title has been named for it either. If #346 is closed without landing and a title needs this call, please reopen with the title ID.

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