fix(npmanager): track reachability callback registration #1322
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1322"
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 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
main; related stubs and implementations checked.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:
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 oncRILAEvn+9M.Applying this PR as well clears that failure. Skyrim then reaches the unimplemented service-entitlement request in #1299. Both
guest_np_managerandguest_np_reachabilitypass 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.
Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T05:24:14Z.
Rebased on
5850a6cdand resolved the documentation conflict. Reachability and NP-manager tests pass on Fedora 44 Release. The implementation is unchanged.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.
main)docs/dev/TechnicalDebt.mdL303docs/dev/TechnicalDebt.mdL303Imported 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
sceNpUnregisterNpReachabilityStateCallback