fix(npmanager): track reachability callback registration #1322

Merged
TibixDev merged 1 commit from upstream-pr/1322 into main 2026-10-08 06:36:00 +00:00
TibixDev commented 2026-10-07 23:34:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-07T23:34:08Z.


What

Track reachability callback registration in the existing offline NP model. Reject duplicate registration and unregistering an absent callback. Permit registration again after unregister.

Supersedes the unregister stub in #407/#545 for this function. #926 and #1241 change other NP APIs. Reachability remains unavailable, so no state-change callback is sent.

Tested

Fedora 44, Release: reachability and NP-manager tests. Covers invalid arguments, duplicate registration, unregister, and the unavailable state. Contribution checks pass. Error sources and offline limits are recorded in TechnicalDebt. Windows was not tested.

Checklist

  • Current main; related stubs and implementations checked.
  • One topic.
  • No new code comments.
  • Unsupported paths still throw; UI stubs are documented.
  • No notes, logs, or images in the repository.
  • No new third-party code.
  • General behavior.
  • Depends on: none.
  • AI-assisted: yes.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4779758947 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1322). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-07T23:34:08Z. --- ### What Track reachability callback registration in the existing offline NP model. Reject duplicate registration and unregistering an absent callback. Permit registration again after unregister. Supersedes the unregister stub in #407/#545 for this function. #926 and #1241 change other NP APIs. Reachability remains unavailable, so no state-change callback is sent. ### Tested Fedora 44, Release: reachability and NP-manager tests. Covers invalid arguments, duplicate registration, unregister, and the unavailable state. Contribution checks pass. Error sources and offline limits are recorded in TechnicalDebt. Windows was not tested. ### Checklist - [x] Current `main`; related stubs and implementations checked. - [x] One topic. - [x] No new code comments. - [x] Unsupported paths still throw; UI stubs are documented. - [x] No notes, logs, or images in the repository. - [x] No new third-party code. - [x] General behavior. - [x] Depends on: none. - [x] AI-assisted: yes.
TibixDev commented 2026-10-08 03:56:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T03:56:34Z.


Reproduced with Skyrim, PPSA03747, content version 01.001.010, on upstream a9ba39c927713cf294b8e1b7877ddb365d3a1d6f. Linux, GCC 16, Release build in Fedora 44.

The upstream loader relocation check reports:

undefined symbol: cRILAEvn+9M

This is the NID for sceNpUnregisterNpReachabilityStateCallback, imported by Skyrim. A normal upstream launch stops first on the missing temporary-storage unmount import. With only #1320 applied to clear that earlier blocker, the normal launch exits with code 127 on cRILAEvn+9M.

Applying this PR as well clears that failure. Skyrim then reaches the unimplemented service-entitlement request in #1299. Both guest_np_manager and guest_np_reachability pass on the test branch.

This is a missing-import startup failure, not evidence that the unregister body executes during startup. No combined-fork graphics or audio changes were included.

AI-assisted investigation and reply.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6051863258 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1322#issuecomment-6051863258). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T03:56:34Z. --- Reproduced with Skyrim, **PPSA03747**, content version **01.001.010**, on upstream `a9ba39c927713cf294b8e1b7877ddb365d3a1d6f`. Linux, GCC 16, Release build in Fedora 44. The upstream loader relocation check reports: ```text undefined symbol: cRILAEvn+9M ``` This is the NID for `sceNpUnregisterNpReachabilityStateCallback`, imported by Skyrim. A normal upstream launch stops first on the missing temporary-storage unmount import. With only #1320 applied to clear that earlier blocker, the normal launch exits with code 127 on `cRILAEvn+9M`. Applying this PR as well clears that failure. Skyrim then reaches the unimplemented service-entitlement request in #1299. Both `guest_np_manager` and `guest_np_reachability` pass on the test branch. This is a missing-import startup failure, not evidence that the unregister body executes during startup. No combined-fork graphics or audio changes were included. AI-assisted investigation and reply.
TibixDev commented 2026-10-08 05:24:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T05:24:14Z.


Rebased on 5850a6cd and resolved the documentation conflict. Reachability and NP-manager tests pass on Fedora 44 Release. The implementation is unchanged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6052967266 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1322#issuecomment-6052967266). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T05:24:14Z. --- Rebased on `5850a6cd` and resolved the documentation conflict. Reachability and NP-manager tests pass on Fedora 44 Release. The implementation is unchanged.
github-actions[bot] commented 2026-10-08 05:26:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T05:26:16Z.


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
#1262 docs/dev/TechnicalDebt.md L303
#1415 docs/dev/TechnicalDebt.md L303
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6052993207 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1322#issuecomment-6052993207). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T05:26:16Z. --- <!-- 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 | |---|---|---|---| | #1262 | `docs/dev/TechnicalDebt.md` [L303](https://github.com/boykopovar/AnyPS5/blob/a57ccfb4263eb7cb9f3ff074caf8bf95771f765c/docs/dev/TechnicalDebt.md#L303) | | | | #1415 | `docs/dev/TechnicalDebt.md` [L303](https://github.com/boykopovar/AnyPS5/blob/a57ccfb4263eb7cb9f3ff074caf8bf95771f765c/docs/dev/TechnicalDebt.md#L303) | | |
github-actions[bot] commented 2026-10-08 05:28:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T05:28:52Z.


Progress report (7753fb0 → e6324fa)

➖ System libraries: 85.18% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpManager sceNpUnregisterNpReachabilityStateCallback
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6053025406 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1322#issuecomment-6053025406). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T05:28:52Z. --- <!-- progress-report --> ### Progress report (7753fb0 → e6324fa) ➖ **System libraries**: 85.18% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpManager | `sceNpUnregisterNpReachabilityStateCallback` | </details>
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!1322
No description provided.