refactor(libSceNpPartner001): name the EA access exports #2344

Merged
mrzacarias merged 1 commit from upstream-pr/2344 into main 2026-10-09 20:49:12 +00:00
mrzacarias commented 2026-10-09 15:59:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mrzacarias on 2026-10-09T15:59:45Z.


What

Resolve the two unknown libSceNpPartner001 NIDs: 7CxI50-xlCk is sceNpEAAccessInitialize and pMxXhNozUX8 is sceNpEAAccessTerminate, as shadPS4 names them in src/core/libraries/np/np_partner.cpp. Both names hash to their NIDs with compute_nid.

  • The APS5_EXPORT aliases go; the NIDs are computed from the names.
  • Behaviour is unchanged: both still throw NotImplemented_nid_no_patch.
  • The TechnicalDebt entry records the names and no-argument signatures follow shadPS4, unconfirmed on a PS5 title.

Tested

  • python3 tools/check_conventions.py --base origin/main passes.
  • tools/nid_names.py: 22 -> 20 unknowns (the two NpPartner001 NIDs no longer scan as unknown).

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; silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4802827570 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2344). Originally posted by [mrzacarias](https://github.com/mrzacarias) on 2026-10-09T15:59:45Z. --- ### What Resolve the two unknown libSceNpPartner001 NIDs: `7CxI50-xlCk` is `sceNpEAAccessInitialize` and `pMxXhNozUX8` is `sceNpEAAccessTerminate`, as shadPS4 names them in `src/core/libraries/np/np_partner.cpp`. Both names hash to their NIDs with `compute_nid`. - The `APS5_EXPORT` aliases go; the NIDs are computed from the names. - Behaviour is unchanged: both still throw `NotImplemented_nid_no_patch`. - The TechnicalDebt entry records the names and no-argument signatures follow shadPS4, unconfirmed on a PS5 title. ### Tested - `python3 tools/check_conventions.py --base origin/main` passes. - `tools/nid_names.py`: 22 -> 20 unknowns (the two NpPartner001 NIDs no longer scan as unknown). ### 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 - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
popcoder565 commented 2026-10-09 19:04:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:04:06Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head fc3e2345, merged onto main f8c2f072 in one build with 9 other PRs that had no Windows run.

  • This PR has no test of its own. It builds, and the suite passes apart from the failure below.
  • Full ctest in that build: 512 of 513. The one failure is agc_driver_depth_fast_clear_submit from #2325, which fails intermittently on its own too. The test comes from #425, where I reported it.

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6087424235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2344#issuecomment-6087424235). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T19:04:06Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `fc3e2345`, merged onto `main` f8c2f072 in one build with 9 other PRs that had no Windows run. - This PR has no test of its own. It builds, and the suite passes apart from the failure below. - Full ctest in that build: 512 of 513. The one failure is `agc_driver_depth_fast_clear_submit` from #2325, which fails intermittently on its own too. The test comes from #425, where I reported it. No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
adriadam10 commented 2026-10-09 20:49:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T20:49:09Z.


Checked: both names hash to their NIDs with compute_nid, shadPS4 np_partner.cpp has both with no arguments, TechnicalDebt line sits in "Unknown function info" and states the unconfirmed signature. Build and ctest green on main + this PR (459/459), confirmed on Windows by @popcoder565. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6089013228 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2344#issuecomment-6089013228). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T20:49:09Z. --- Checked: both names hash to their NIDs with `compute_nid`, shadPS4 `np_partner.cpp` has both with no arguments, TechnicalDebt line sits in "Unknown function info" and states the unconfirmed signature. Build and ctest green on main + this PR (459/459), confirmed on Windows by @popcoder565. Merging.
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!2344
No description provided.