Skip to content

fix(npmanager): track reachability callback registration - #1322

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
TibixDev:pr/np-reachability-lifecycle
Oct 8, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
TibixDev:pr/np-reachability-lifecycle

Conversation

@TibixDev

@TibixDev TibixDev commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

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.

@TibixDev

TibixDev commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

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.

Validate registration and unregister state in the existing offline model. Add lifecycle and invalid-argument coverage.

Written with AI assistance.
@TibixDev
TibixDev force-pushed the pr/np-reachability-lifecycle branch from 13e5175 to e6324fa Compare October 8, 2026 05:23
@TibixDev

TibixDev commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

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

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Progress report (7753fb0 → e6324fa)

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

✅ 1 implemented
Library Name
libSceNpManager sceNpUnregisterNpReachabilityStateCallback

@oneandonlydean
oneandonlydean merged commit 66b9be6 into boykopovar:main Oct 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants