feat(libSceNpPartner001): implement sceNpEAAccessInitialize and sceNpEAAccessTerminate #1517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1517"
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 arvindfroi on 2026-10-08T10:52:04Z.
What
The two libSceNpPartner001 imports of PPSA23566 were declared as unknown NIDs. shadPS4 names them, and the names match the NIDs (
compute_nidintools/nid_names.pyandNid::ComputeNidincore/libs/nid/src/NidCompute.cpp):7CxI50-xlCksceNpEAAccessInitializepMxXhNozUX8sceNpEAAccessTerminateBoth are implemented as in shadPS4: they take no parameters,
sceNpEAAccessInitializemarks the library initialized without a network request, andsceNpEAAccessTerminatereturns0x819D0001(not initialized) when the library is not initialized. A second initialization is not covered by that source, so it throws, assceContentDeleteInitializedoes. The TechnicalDebt entry records what follows shadPS4 and that the console's result while signed out is unknown.The library gets a
CMakeLists.txtin the layout oflibScePsml_debugso thatguest_np_partnercan link against it. The test checks terminate before initialize, initialize and terminate, terminate twice, and a second cycle.Tested
tools/check_conventions.py --base origin/mainpasses.tools/progress.pyreports libSceNpPartner001 at 2/2.Export.cppandGuestNpPartner.cppbuilt natively on macOS (Apple clang, arm64) and the test passes there. No x86-64 toolchain on this machine, so the Linux and Windows builds and the ctest run are left to CI. PPSA23566 not tested.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T10:53:44Z.
Review: COMMENTED
Clean implementation of two previously unknown NIDs following the shadPS4 pattern. The atomic initialization tracking is appropriate for this use case, and the test coverage looks good (terminate before init, double terminate, re-initialization cycle).
One minor note: the PR description mentions "AI-assisted: yes" but doesn't specify which AI tool was used - other PRs in this repo typically name their tools (Claude Code, OpenAI Codex, etc.). Otherwise this looks ready to merge.
Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T11:23:44Z.
Review: APPROVED
Good implementation of the two libSceNpPartner001 functions. This follows established patterns in the project and provides proper thread-safe state management.
Strengths:
Technical notes:
compare_exchange_strongfor atomic state transitionsThis will improve compatibility with titles like PPSA23566 that import these functions. Ready to merge.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:29:22Z.
Closing: no title is shown stopping at
sceNpEAAccessInitializeorsceNpEAAccessTerminateon main (PPSA23566 imports them), and the change was only built on macOS. Reopen when one is a title's next stop on main, with the log line.Pull request closed