libSceNpPartner001: sceNpEAAccessInitialize and sceNpEAAccessTerminate are stubs (UFC 6 imports); fix branch ready #3339

Closed
opened 2026-10-11 08:07:47 +00:00 by screamm · 3 comments
screamm commented 2026-10-11 08:07:47 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T08:07:47Z.


sceNpEAAccessInitialize and sceNpEAAccessTerminate (libSceNpPartner001, Export.cpp) are NotImplemented_nid_no_patch stubs. UFC 6 (PPSA23566) imports them (#992, #1502); no run has stopped on them yet.

Fix branch ready: screamm:feat/np-ea-access-init (b86fc652, one commit on main a4b0b16b). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. The intake-closed #1517 and #2358 implemented them with different return codes; this is a rewrite on current main.

  • No-argument signatures, init sets state, terminate clears it: shadPS4 src/core/libraries/np/np_partner.cpp, #1517 and #2358 agree. The init/term state follows the libSceContentDelete pattern in this repo. Where the sources disagree the call throws: terminate without initialize (shadPS4 returns the PS4 0x819D0001, #1517 copied it, #2358 threw; the PS5 value is unknown) and a second initialize (shadPS4's stubbed initialize returns 0 unconditionally, #1517 threw). Recorded in TechnicalDebt together with the unknown signed-out behaviour.
  • New guest_np_partner (the library gets a CMakeLists.txt test block in the libSceContentExport layout) covers terminate without init, init, double init, terminate, terminate again, and a second cycle.

Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including libs: guest_np_partner 3/3; ctest -j8 -E "^agc_driver_|^video_out_flip" 508/508 (with the #3329 test fix applied locally so the tree builds); with main's Export.cpp the test fails; tools/check_conventions.py --base main and git diff --check pass. Not run on Linux.

Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5799263945 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3339). Originally posted by [screamm](https://github.com/screamm) on 2026-10-11T08:07:47Z. --- `sceNpEAAccessInitialize` and `sceNpEAAccessTerminate` (libSceNpPartner001, [Export.cpp](https://github.com/boykopovar/AnyPS5/blob/main/core/libs/prx/libSceNpPartner001/Export.cpp)) are `NotImplemented_nid_no_patch` stubs. UFC 6 (PPSA23566) imports them (#992, #1502); no run has stopped on them yet. **Fix branch ready:** [`screamm:feat/np-ea-access-init`](https://github.com/screamm/AnyPS5/tree/feat/np-ea-access-init) (`b86fc652`, one commit on `main` `a4b0b16b`). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. The intake-closed #1517 and #2358 implemented them with different return codes; this is a rewrite on current `main`. - No-argument signatures, init sets state, terminate clears it: shadPS4 `src/core/libraries/np/np_partner.cpp`, #1517 and #2358 agree. The init/term state follows the `libSceContentDelete` pattern in this repo. Where the sources disagree the call throws: terminate without initialize (shadPS4 returns the PS4 `0x819D0001`, #1517 copied it, #2358 threw; the PS5 value is unknown) and a second initialize (shadPS4's stubbed initialize returns 0 unconditionally, #1517 threw). Recorded in TechnicalDebt together with the unknown signed-out behaviour. - New `guest_np_partner` (the library gets a `CMakeLists.txt` test block in the `libSceContentExport` layout) covers terminate without init, init, double init, terminate, terminate again, and a second cycle. **Tested** on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including `libs`: `guest_np_partner` 3/3; `ctest -j8 -E "^agc_driver_|^video_out_flip"` 508/508 (with the #3329 test fix applied locally so the tree builds); with `main`'s `Export.cpp` the test fails; `tools/check_conventions.py --base main` and `git diff --check` pass. Not run on Linux. Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
blawesom commented 2026-10-11 09:52:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T09:52:48Z.


Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON.

  • Rebased b86fc652 onto current main (the branch was 244 commits behind): one conflict in docs/dev/TechnicalDebt.md, resolved by keeping both this entry and main's newer entries; no code conflicts.
  • tools/check_conventions.py --base origin/main and git diff --check pass.
  • guest_np_partner passes.
  • Full suite mirroring the Windows run (ctest -j8 -E "^agc_driver_|^video_out_flip"): 521/521 passed.

The rebased branch is available at blawesom:verify/3339 for anyone carrying — the commit is otherwise unchanged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107769036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3339#issuecomment-6107769036). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-11T09:52:48Z. --- Independent verification on **Linux** (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`. - Rebased `b86fc652` onto current `main` (the branch was 244 commits behind): one conflict in `docs/dev/TechnicalDebt.md`, resolved by keeping both this entry and main's newer entries; no code conflicts. - `tools/check_conventions.py --base origin/main` and `git diff --check` pass. - `guest_np_partner` passes. - Full suite mirroring the Windows run (`ctest -j8 -E "^agc_driver_|^video_out_flip"`): **521/521 passed**. The rebased branch is available at [`blawesom:verify/3339`](https://github.com/blawesom/AnyPS5/tree/verify/3339) for anyone carrying — the commit is otherwise unchanged.
MarcZX10 commented 2026-10-11 15:56:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T15:56:27Z.


Carried David’s ready commit unchanged into #3718, preserving its author metadata. The change is based on current main; the independently reported Linux verification is included in the PR description.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110852771 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3339#issuecomment-6110852771). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T15:56:27Z. --- Carried David’s ready commit unchanged into #3718, preserving its author metadata. The change is based on current main; the independently reported Linux verification is included in the PR description.
oneandonlydean commented 2026-10-13 02:07:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:07:53Z.


Closing: fixed by #3718.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136615003 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3339#issuecomment-6136615003). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T02:07:53Z. --- Closing: fixed by #3718.
Sign in to join this conversation.
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#3339
No description provided.