feat(libSceNpManager): register NP state callbacks and report signed-out from sceNpCheckCallback #6121

Merged
fdfawef324 merged 1 commit from upstream-pr/6121 into main 2026-10-18 16:57:53 +00:00
fdfawef324 commented 2026-10-14 22:46:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T22:46:45Z.


What

#1277 reports that Minecraft Preview (PPSA19639) needs this for stop 2: the title registers an NP state callback and expects sceNpCheckCallback to deliver SIGNED_OUT once. This PR is the NpManager part of that stop. On main, sceNpRegisterStateCallback and sceNpRegisterStateCallbackA store nothing (the A form always returns 1), both unregister calls always return 0, and sceNpCheckCallback does nothing.

Registration follows shadPS4 np_manager.cpp @15abf68c (RegisterStateCallbackA and UnregisterStateCallbackAById L857-L901, the legacy pair L981-L1005, ORBIS_NP_STATE_CALLBACK_MAX = 8 at L36):

  • sceNpRegisterStateCallbackA(cb, ud) keeps up to 8 callbacks and returns the slot plus 1. A null callback returns INVALID_ARGUMENT (0x80550003), a callback that is already registered CALLBACK_ALREADY_REGISTERED (0x80550008), and a ninth one CALLBACK_MAX (0x8055001D, np_error.h L38).
  • sceNpUnregisterStateCallbackA(id) returns INVALID_ARGUMENT for an id outside 1..8 and CALLBACK_NOT_REGISTERED (0x80550009) for an empty slot.
  • sceNpRegisterStateCallback(cb, ud) is the legacy form void(int userId, uint32_t state, NpId* npId, void* ud) with one slot: a null callback is INVALID_ARGUMENT, a second registration CALLBACK_ALREADY_REGISTERED. sceNpUnregisterStateCallback with nothing registered returns CALLBACK_NOT_REGISTERED.
  • Both callback types are declared with APS5_VABI.

Delivery:

  • Each registration is marked pending.
  • sceNpCheckCallback copies the registrations and clears the pending flags under the mutex. After releasing it, on the calling thread, it calls the A form as cb(0x10000000, SIGNED_OUT = 1, ud) and the legacy form as cb(0x10000000, 1, nullptr, ud). 0x10000000 is USER_SERVICE_INITIAL_USER_ID from prx/libSceUserService/UserService.hpp.
  • The A form follows KytyPS5 network.cpp @9e41d832: NpRegisterStateCallbackA (L4021-L4034) marks the registration pending, and NpCheckCallback (L3959-L3974) delivers it once. KytyPS5 never calls the legacy callback: its NpRegisterStateCallback and NpUnregisterStateCallback (L4009-L4019) do nothing.
  • The legacy call with a null NpId follows shadPS4, which sets has_np_id only for SignedIn (L823) and passes nullptr otherwise (L938-L940).
  • A registration removed before the next check is not called. Because the callbacks run after the mutex is released, a callback can unregister itself. A callback that one thread is already delivering is still called once if another thread unregisters it meanwhile, as with shadPS4's copy-then-dispatch.
  • The reachability callback is still not delivered (its debt entry is unchanged). Unlike shadPS4, whose DispatchPendingNpStateCallbacks also calls it once with UNAVAILABLE for the same event (L922-L931, L959-L961), it gets no initial call.

shadPS4 queues SIGNED_OUT from the user service login event and delivers it from sceNpCheckCallback (DispatchPendingNpStateCallbacks L903-L962). That difference, the reachability difference, the unregister race and the fact that the console's timing and errors are not measured are recorded in docs/dev/debt/libSceNpManager.md.

Test: GuestNpManager.cpp (guest_np_manager) now also checks both forms with APS5_VABI callbacks that record userId, state, npId and userdata:

  • A form: a null callback is rejected and the returned id is in 1..8. A duplicate returns 0x80550008. Registering calls nothing. An aborting reachability callback is registered around the first check, which calls the state callback once as (0x10000000, 1, ud) and never calls the reachability callback. A second check calls nothing. The 8 ids are distinct. With 8 slots full, the next registration returns 0x8055001D, and the next check calls each of the 7 new callbacks once. Unregistering ids 0 and 9 returns 0x80550003. After unregistering one id in the middle, each of the other 7 callbacks still returns 0x80550008, the removed callback registers again into the same id, and only it is called by the next check. Unregistering the same id twice returns 0x80550009 the second time. A callback that is registered and then unregistered before the next check is not called. A callback that calls sceNpUnregisterStateCallbackA on its own id gets 0, and its id is then empty.
  • Legacy form: unregistering with nothing registered returns 0x80550009, a null callback is rejected, and a duplicate returns 0x80550008. The first check makes one call with a null npId, and a second check makes none. Unregistering returns 0, and a second unregister returns 0x80550009.
  • guest_np_reachability still passes.

Need on current main: the only evidence for stop 2 is the #1277 reporter's local patch on main d4c196c2, and a 2026-10-14 comment there notes that stop 2 is not covered by #5133. Minecraft (PPSA17221), which shares the engine, is reported to run on main without this change. The change affects every title that registers a state callback: it now gets one SIGNED_OUT call that it never got before. I have not run either title, so this PR does not confirm the stop on current main. @ddrsilva, or anyone who runs PPSA17221: could you run this branch with the Preview and with PPSA17221 before merge? I will add the result to Tested.

Tested

Windows Server 2025 (10.0.26100), WinLibs MinGW-w64 GCC 15.2.0, Ninja, Release, BUILD_TESTING=ON, on main 922abe6a4.

  • Red, with the new test against main's Export.cpp: guest_np_manager aborts (0xc0000409) with NpManager: duplicate state callback, in 2 of 2 runs on 922abe6a4.
  • On 153d5d469, the new checks also failed against three broken variants of this change. If unregistering clears the wrong slot, the test aborts with unregistering one id removed another callback. If the reachability callback is called with the state event, it aborts with the reachability callback was called. If the callbacks are called with the mutex held, the self-unregistering callback deadlocks, and the test times out.
  • Green, with this change on 922abe6a4: guest_np_manager and guest_np_reachability pass in 3 of 3 runs, each in under 0.75 s on a host running parallel builds.
  • ctest -R guest_np_ (9 tests, including guest_np_auth, guest_np_partner, guest_np_web_api2 and guest_np_session_signaling): 9 of 9 passed in 3 runs on 922abe6a4.
  • tools/check_conventions.py --base upstream/main (the tools from main): passed.
  • Overlap: git merge-tree of this branch (on 922abe6a4) with each of the four open PRs that change the same files adds no conflict.
    • #6023 (head 46541633, sceNpSetContentRestriction, sceNpRegisterGamePresenceCallback) and #2852 (head 3351d1f1, sceNpGetUserIdByAccountId) change other hunks of Export.cpp and GuestNpManager.cpp. #6023 also adds entries next to ours in docs/dev/debt/libSceNpManager.md, which merge cleanly.
    • #6056 (head 696a3b63, two unknown NIDs) changes Export.cpp, GuestNpManager.cpp, libSceNpManager/CMakeLists.txt and the same debt file.
    • #6044 (head 5fa62e59) moves GuestNpManager.cpp to core/libs/tests/services/ and GuestNpReachability.cpp to core/libs/tests/networking/, and edits libSceNpManager/CMakeLists.txt. git follows the move, and the merged tree has this PR's test changes at the new path. #6044's conflicts are in libSceAgcDriver/CMakeLists.txt and libc/CMakeLists.txt, and it has them with main alone.
    • On 153d5d469, guest_np_manager and guest_np_reachability were built and passed on this branch merged with #6023 and #6056, and on this branch merged with #6023 and #2852. #2852 conflicts with main only in docs/dev/TechnicalDebt.md, and with #6056 in GuestNpManager.cpp; this PR changes neither conflict.
    • Any order works. Whichever PR lands second rebases; after #6044, that means taking the moved test path.
  • Titles: not run. A run of PPSA19639 and PPSA17221 on this branch has been requested above.

Not tested: Linux, macOS, titles.

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 under Silent stubs in their library's technical debt file
  • 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
  • Unblocks: PPSA19639 #1277
  • GPUs tested: n/a (no AGC, shader recompiler or VideoOut change)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4865603347 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-14T22:46:45Z. --- ### What #1277 reports that Minecraft Preview (PPSA19639) needs this for stop 2: the title registers an NP state callback and expects `sceNpCheckCallback` to deliver SIGNED_OUT once. This PR is the NpManager part of that stop. On `main`, `sceNpRegisterStateCallback` and `sceNpRegisterStateCallbackA` store nothing (the A form always returns 1), both unregister calls always return 0, and `sceNpCheckCallback` does nothing. Registration follows shadPS4 [np_manager.cpp @15abf68c](https://github.com/shadps4-emu/shadPS4/blob/15abf68c9b52c4b04d094f2837719fdb871021f3/src/core/libraries/np/np_manager.cpp) (`RegisterStateCallbackA` and `UnregisterStateCallbackAById` L857-L901, the legacy pair L981-L1005, `ORBIS_NP_STATE_CALLBACK_MAX = 8` at L36): - `sceNpRegisterStateCallbackA(cb, ud)` keeps up to 8 callbacks and returns the slot plus 1. A null callback returns `INVALID_ARGUMENT` (0x80550003), a callback that is already registered `CALLBACK_ALREADY_REGISTERED` (0x80550008), and a ninth one `CALLBACK_MAX` (0x8055001D, [np_error.h L38](https://github.com/shadps4-emu/shadPS4/blob/15abf68c9b52c4b04d094f2837719fdb871021f3/src/core/libraries/np/np_error.h#L38)). - `sceNpUnregisterStateCallbackA(id)` returns `INVALID_ARGUMENT` for an id outside 1..8 and `CALLBACK_NOT_REGISTERED` (0x80550009) for an empty slot. - `sceNpRegisterStateCallback(cb, ud)` is the legacy form `void(int userId, uint32_t state, NpId* npId, void* ud)` with one slot: a null callback is `INVALID_ARGUMENT`, a second registration `CALLBACK_ALREADY_REGISTERED`. `sceNpUnregisterStateCallback` with nothing registered returns `CALLBACK_NOT_REGISTERED`. - Both callback types are declared with `APS5_VABI`. Delivery: - Each registration is marked pending. - `sceNpCheckCallback` copies the registrations and clears the pending flags under the mutex. After releasing it, on the calling thread, it calls the A form as `cb(0x10000000, SIGNED_OUT = 1, ud)` and the legacy form as `cb(0x10000000, 1, nullptr, ud)`. 0x10000000 is `USER_SERVICE_INITIAL_USER_ID` from `prx/libSceUserService/UserService.hpp`. - The A form follows KytyPS5 [network.cpp @9e41d832](https://github.com/KytyPS5/KytyPS5/blob/9e41d8320a2774b303fbad344c2347e8d0292e83/src/libs/network.cpp): `NpRegisterStateCallbackA` (L4021-L4034) marks the registration pending, and `NpCheckCallback` (L3959-L3974) delivers it once. KytyPS5 never calls the legacy callback: its `NpRegisterStateCallback` and `NpUnregisterStateCallback` (L4009-L4019) do nothing. - The legacy call with a null NpId follows shadPS4, which sets `has_np_id` only for `SignedIn` ([L823](https://github.com/shadps4-emu/shadPS4/blob/15abf68c9b52c4b04d094f2837719fdb871021f3/src/core/libraries/np/np_manager.cpp#L823)) and passes `nullptr` otherwise ([L938-L940](https://github.com/shadps4-emu/shadPS4/blob/15abf68c9b52c4b04d094f2837719fdb871021f3/src/core/libraries/np/np_manager.cpp#L938-L940)). - A registration removed before the next check is not called. Because the callbacks run after the mutex is released, a callback can unregister itself. A callback that one thread is already delivering is still called once if another thread unregisters it meanwhile, as with shadPS4's copy-then-dispatch. - The reachability callback is still not delivered (its debt entry is unchanged). Unlike shadPS4, whose `DispatchPendingNpStateCallbacks` also calls it once with UNAVAILABLE for the same event (L922-L931, L959-L961), it gets no initial call. shadPS4 queues SIGNED_OUT from the user service login event and delivers it from `sceNpCheckCallback` (`DispatchPendingNpStateCallbacks` L903-L962). That difference, the reachability difference, the unregister race and the fact that the console's timing and errors are not measured are recorded in `docs/dev/debt/libSceNpManager.md`. Test: `GuestNpManager.cpp` (`guest_np_manager`) now also checks both forms with `APS5_VABI` callbacks that record userId, state, npId and userdata: - A form: a null callback is rejected and the returned id is in 1..8. A duplicate returns 0x80550008. Registering calls nothing. An aborting reachability callback is registered around the first check, which calls the state callback once as (0x10000000, 1, ud) and never calls the reachability callback. A second check calls nothing. The 8 ids are distinct. With 8 slots full, the next registration returns 0x8055001D, and the next check calls each of the 7 new callbacks once. Unregistering ids 0 and 9 returns 0x80550003. After unregistering one id in the middle, each of the other 7 callbacks still returns 0x80550008, the removed callback registers again into the same id, and only it is called by the next check. Unregistering the same id twice returns 0x80550009 the second time. A callback that is registered and then unregistered before the next check is not called. A callback that calls `sceNpUnregisterStateCallbackA` on its own id gets 0, and its id is then empty. - Legacy form: unregistering with nothing registered returns 0x80550009, a null callback is rejected, and a duplicate returns 0x80550008. The first check makes one call with a null `npId`, and a second check makes none. Unregistering returns 0, and a second unregister returns 0x80550009. - `guest_np_reachability` still passes. Need on current `main`: the only evidence for stop 2 is the #1277 reporter's local patch on `main` `d4c196c2`, and a 2026-10-14 comment there notes that stop 2 is not covered by #5133. Minecraft (PPSA17221), which shares the engine, is reported to run on `main` without this change. The change affects every title that registers a state callback: it now gets one SIGNED_OUT call that it never got before. I have not run either title, so this PR does not confirm the stop on current `main`. @ddrsilva, or anyone who runs PPSA17221: could you run this branch with the Preview and with PPSA17221 before merge? I will add the result to Tested. ### Tested Windows Server 2025 (10.0.26100), WinLibs MinGW-w64 GCC 15.2.0, Ninja, Release, `BUILD_TESTING=ON`, on `main` 922abe6a4. - Red, with the new test against `main`'s `Export.cpp`: `guest_np_manager` aborts (`0xc0000409`) with `NpManager: duplicate state callback`, in 2 of 2 runs on 922abe6a4. - On 153d5d469, the new checks also failed against three broken variants of this change. If unregistering clears the wrong slot, the test aborts with `unregistering one id removed another callback`. If the reachability callback is called with the state event, it aborts with `the reachability callback was called`. If the callbacks are called with the mutex held, the self-unregistering callback deadlocks, and the test times out. - Green, with this change on 922abe6a4: `guest_np_manager` and `guest_np_reachability` pass in 3 of 3 runs, each in under 0.75 s on a host running parallel builds. - `ctest -R guest_np_` (9 tests, including `guest_np_auth`, `guest_np_partner`, `guest_np_web_api2` and `guest_np_session_signaling`): 9 of 9 passed in 3 runs on 922abe6a4. - `tools/check_conventions.py --base upstream/main` (the tools from `main`): passed. - Overlap: `git merge-tree` of this branch (on 922abe6a4) with each of the four open PRs that change the same files adds no conflict. - #6023 (head 46541633, `sceNpSetContentRestriction`, `sceNpRegisterGamePresenceCallback`) and #2852 (head 3351d1f1, `sceNpGetUserIdByAccountId`) change other hunks of `Export.cpp` and `GuestNpManager.cpp`. #6023 also adds entries next to ours in `docs/dev/debt/libSceNpManager.md`, which merge cleanly. - #6056 (head 696a3b63, two unknown NIDs) changes `Export.cpp`, `GuestNpManager.cpp`, `libSceNpManager/CMakeLists.txt` and the same debt file. - #6044 (head 5fa62e59) moves `GuestNpManager.cpp` to `core/libs/tests/services/` and `GuestNpReachability.cpp` to `core/libs/tests/networking/`, and edits `libSceNpManager/CMakeLists.txt`. git follows the move, and the merged tree has this PR's test changes at the new path. #6044's conflicts are in `libSceAgcDriver/CMakeLists.txt` and `libc/CMakeLists.txt`, and it has them with `main` alone. - On 153d5d469, `guest_np_manager` and `guest_np_reachability` were built and passed on this branch merged with #6023 and #6056, and on this branch merged with #6023 and #2852. #2852 conflicts with `main` only in `docs/dev/TechnicalDebt.md`, and with #6056 in `GuestNpManager.cpp`; this PR changes neither conflict. - Any order works. Whichever PR lands second rebases; after #6044, that means taking the moved test path. - Titles: not run. A run of PPSA19639 and PPSA17221 on this branch has been requested above. Not tested: Linux, macOS, titles. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Unblocks: PPSA19639 #1277 - [x] GPUs tested: n/a (no AGC, shader recompiler or VideoOut change) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-15 12:15:01 +00:00 (Migrated from github.com)

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


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestNpManager.cpp
PR 6977 core/libs/prx/libSceNpManager/Export.cpp
docs/dev/debt/libSceNpManager.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191801831 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121#issuecomment-6191801831). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:15:01Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestNpManager.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceNpManager/Export.cpp`<br>`docs/dev/debt/libSceNpManager.md` |
isnisk commented 2026-10-15 14:50:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by isnisk on 2026-10-15T14:50:21Z.


Checked on Linux: Ubuntu 26.04 (WSL2), GCC 15.2.0, Release, this head (9f96444c4) merged onto main 489466d3f (clean merge).

  • With the change: guest_np_manager, guest_np_reachability and the other 7 guest_np_* tests pass, 3 rounds; no warnings from the changed files.
  • Without it (main's Export.cpp, the new test kept): guest_np_manager aborts 3 of 3 with NpManager: duplicate state callback, as on Windows.
  • check_conventions.py --base origin/main passes.

Not checked: macOS, the titles.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6194962860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121#issuecomment-6194962860). Originally posted by [isnisk](https://github.com/isnisk) on 2026-10-15T14:50:21Z. --- Checked on Linux: Ubuntu 26.04 (WSL2), GCC 15.2.0, Release, this head (`9f96444c4`) merged onto `main` `489466d3f` (clean merge). - With the change: `guest_np_manager`, `guest_np_reachability` and the other 7 `guest_np_*` tests pass, 3 rounds; no warnings from the changed files. - Without it (`main`'s `Export.cpp`, the new test kept): `guest_np_manager` aborts 3 of 3 with `NpManager: duplicate state callback`, as on Windows. - `check_conventions.py --base origin/main` passes. Not checked: macOS, the titles. AI-assisted: yes (Claude Code).
ddrsilva commented 2026-10-15 15:36:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ddrsilva on 2026-10-15T15:36:12Z.


Preview check for head 9f96444c4a511d64fb7efd184dafe12de3fa66b9: Windows 11 Pro 26200, WinLibs MinGW-w64 GCC 15.2, Minecraft Preview 1.21.40.22 (PPSA19639), RTX 2080 Ti, 1920x1080 / 32 chunks.

I built the complete libSceNpManager/Export.cpp from this head unchanged, using the PR's headers, and substituted that module in an isolated copy of my existing working Minecraft integration. Preview reached its title screen, loaded the saved world and entered rendered gameplay without a crash or NP-related stop. The loaded-module path/hash were checked. A read-only snapshot of the PR module's state showed one registered A-form guest callback with its pending flag cleared, consistent with it being processed by sceNpCheckCallback; this is not a callback entry/return trace.

The parent control also entered gameplay. I built the parent revision's complete NP module (922abe6a4) and ran it with the same other 120 modules, fixture and launch flags. Therefore I cannot reproduce the original stop 2 in this configuration or claim that this PR newly unblocks Preview. The useful result is no observed Preview world-entry regression with the proposed callback behavior.

The PR's GuestNpManager and GuestNpReachability tests pass three runs each. Keeping the new tests and using the parent's module fails GuestNpManager with NpManager: duplicate state callback (0xc0000409); reachability still passes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195946707 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121#issuecomment-6195946707). Originally posted by [ddrsilva](https://github.com/ddrsilva) on 2026-10-15T15:36:12Z. --- Preview check for head `9f96444c4a511d64fb7efd184dafe12de3fa66b9`: Windows 11 Pro 26200, WinLibs MinGW-w64 GCC 15.2, Minecraft Preview 1.21.40.22 (`PPSA19639`), RTX 2080 Ti, 1920x1080 / 32 chunks. I built the complete `libSceNpManager/Export.cpp` from this head unchanged, using the PR's headers, and substituted that module in an isolated copy of my existing working Minecraft integration. Preview reached its title screen, loaded the saved world and entered rendered gameplay without a crash or NP-related stop. The loaded-module path/hash were checked. A read-only snapshot of the PR module's state showed one registered A-form guest callback with its pending flag cleared, consistent with it being processed by `sceNpCheckCallback`; this is not a callback entry/return trace. **The parent control also entered gameplay.** I built the parent revision's complete NP module (`922abe6a4`) and ran it with the same other 120 modules, fixture and launch flags. Therefore I cannot reproduce the original stop 2 in this configuration or claim that this PR newly unblocks Preview. The useful result is no observed Preview world-entry regression with the proposed callback behavior. The PR's `GuestNpManager` and `GuestNpReachability` tests pass three runs each. Keeping the new tests and using the parent's module fails `GuestNpManager` with `NpManager: duplicate state callback` (`0xc0000409`); reachability still passes.
adriadam10 commented 2026-10-16 23:30:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T23:30:20Z.


Checked the state callback registration (8 slots, legacy single slot, error codes vs shadPS4), delivery from sceNpCheckCallback outside the mutex, self-unregistering callbacks and the debt entry. guest_np_manager passes with the change and fails without it; scoped ctest (36 tests) green on this head merged onto main. Third-party runs (Linux, Preview) noted in the thread. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226624507 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121#issuecomment-6226624507). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T23:30:20Z. --- Checked the state callback registration (8 slots, legacy single slot, error codes vs shadPS4), delivery from `sceNpCheckCallback` outside the mutex, self-unregistering callbacks and the debt entry. `guest_np_manager` passes with the change and fails without it; scoped ctest (36 tests) green on this head merged onto main. Third-party runs (Linux, Preview) noted in the thread. Merging.
MarcZX10 commented 2026-10-17 02:09:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T02:09:29Z.


I have a small offline-profile follow-up for issue #1794 that adds sceNpGetAccountIdA and aligns sceUserServiceGetNpAccountId to a fixed local account ID. tools/pr_overlap.py reports a merge conflict in libSceNpManager/Export.cpp at the shared include block, although the functions are otherwise distinct. Do you have a preferred merge order? I can declare a dependency and rebase after yours lands.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6228332544 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121#issuecomment-6228332544). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T02:09:29Z. --- I have a small offline-profile follow-up for issue #1794 that adds `sceNpGetAccountIdA` and aligns `sceUserServiceGetNpAccountId` to a fixed local account ID. `tools/pr_overlap.py` reports a merge conflict in `libSceNpManager/Export.cpp` at the shared include block, although the functions are otherwise distinct. Do you have a preferred merge order? I can declare a dependency and rebase after yours lands.
MarcZX10 commented 2026-10-17 02:15:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T02:15:16Z.


I adjusted the include placement; the latest pr_overlap.py run no longer reports a conflict with #6121. No dependency or merge order is needed for the current diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6228383895 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6121#issuecomment-6228383895). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T02:15:16Z. --- I adjusted the include placement; the latest `pr_overlap.py` run no longer reports a conflict with #6121. No dependency or merge order is needed for the current diff.
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!6121
No description provided.