feat(libSceNpManager): export two unknown NIDs so PPSA34015 can load #6056

Merged
notaxeltv merged 2 commits from upstream-pr/6056 into main 2026-10-17 04:51:49 +00:00
notaxeltv commented 2026-10-14 20:57:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-14T20:57:34Z.


What

After libSceLoginService (#6034) and sceNpHasEAAccessSubscription (#6049), PPSA34015 (EA SPORTS FC 27) fails to load libSceNpManager.prx:

FAIL: unresolved ELF import 8weiQyIdI3A from libSceNpManager.prx
GetLastError: 127 - The specified procedure could not be found.

8weiQyIdI3A and WxLcN76q19o are not in aerolib. Declared as sceNpUnknown_* through APS5_EXPORT.

  • sceNpUnknown_8weiQyIdI3A(int userId, void* buffer): the title's only call passes a user id in edi and a pointer in rsi to a 17-byte stack buffer filled just before (mov edx, 0x11); test eax, eax follows. Throws without touching caller memory.
  • sceNpUnknown_WxLcN76q19o(void): strong JUMP_SLOT import with no call in the eboot; the loader still requires the export. Throws.

Debt in docs/dev/debt/libSceNpManager.md. guest_np_manager now covers both throws. With this .prx, PPSA34015 no longer reports those NIDs; the next loader stop is GtF-2gJqsts from libScePlayerSelectionDialog.prx (separate).

Tested

Windows 10, WinLibs GCC 15.2.0, guest_np_manager passes. Runtime with the patched libSceNpManager.prx (plus #6034/#6049 libs) advances past 8weiQyIdI3A. tools/check_conventions.py --base upstream/main passes.

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 (none)
  • Generic behaviour, not specific to one title
  • Depends on: #6034, #6049
  • Unblocks: PPSA34015
  • GPUs tested: n/a
  • AI-assisted: yes

Made with Cursor

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864423915 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6056). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-14T20:57:34Z. --- ### What After `libSceLoginService` (#6034) and `sceNpHasEAAccessSubscription` (#6049), PPSA34015 (EA SPORTS FC 27) fails to load `libSceNpManager.prx`: ``` FAIL: unresolved ELF import 8weiQyIdI3A from libSceNpManager.prx GetLastError: 127 - The specified procedure could not be found. ``` `8weiQyIdI3A` and `WxLcN76q19o` are not in aerolib. Declared as `sceNpUnknown_*` through `APS5_EXPORT`. - `sceNpUnknown_8weiQyIdI3A(int userId, void* buffer)`: the title's only call passes a user id in `edi` and a pointer in `rsi` to a 17-byte stack buffer filled just before (`mov edx, 0x11`); `test eax, eax` follows. Throws without touching caller memory. - `sceNpUnknown_WxLcN76q19o(void)`: strong `JUMP_SLOT` import with no call in the eboot; the loader still requires the export. Throws. Debt in `docs/dev/debt/libSceNpManager.md`. `guest_np_manager` now covers both throws. With this `.prx`, PPSA34015 no longer reports those NIDs; the next loader stop is `GtF-2gJqsts` from `libScePlayerSelectionDialog.prx` (separate). ### Tested Windows 10, WinLibs GCC 15.2.0, `guest_np_manager` passes. Runtime with the patched `libSceNpManager.prx` (plus #6034/#6049 libs) advances past `8weiQyIdI3A`. `tools/check_conventions.py --base upstream/main` passes. ### 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 (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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 (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: #6034, #6049 - [x] Unblocks: PPSA34015 - [x] GPUs tested: n/a - [x] AI-assisted: yes Made with [Cursor](https://cursor.com)
github-actions[bot] commented 2026-10-14 20:58:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T20:58:17Z.


Progress report (e9a3343 → 53ffc97)

📉 System libraries: 89.11% (-0.05%, +2 declared functions)

🆕 2 declared as stubs
Library Name
libSceNpManager sceNpUnknown_8weiQyIdI3A
libSceNpManager sceNpUnknown_WxLcN76q19o
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6178338661 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6056#issuecomment-6178338661). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T20:58:17Z. --- <!-- progress-report --> ### Progress report (e9a3343 → 53ffc97) 📉 **System libraries**: 89.11% (-0.05%, +2 declared functions) <details> <summary>🆕 2 declared as stubs</summary> | Library | Name | | - | - | | libSceNpManager | `sceNpUnknown_8weiQyIdI3A` | | libSceNpManager | `sceNpUnknown_WxLcN76q19o` | </details>
github-actions[bot] commented 2026-10-15 06:43:04 +00:00 (Migrated from github.com)

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


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/prx/libSceNpManager/CMakeLists.txt
core/libs/tests/GuestNpManager.cpp
PR 6447 core/libs/prx/libSceNpManager/Export.cpp
docs/dev/debt/libSceNpManager.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186177096 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6056#issuecomment-6186177096). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T06:43:04Z. --- <!-- 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/prx/libSceNpManager/CMakeLists.txt`<br>`core/libs/tests/GuestNpManager.cpp` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceNpManager/Export.cpp`<br>`docs/dev/debt/libSceNpManager.md` |
adriadam10 commented 2026-10-16 21:49:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T21:49:33Z.


Checked: both exports throw without touching caller memory, the debt entries are under "Unknown function info", guest_np_manager covers both throws and does not link without the change; build and ctest green on current main.

Added on top of your commit: the trailing period on the sceNpGetSandboxInfo debt line (the PR had dropped it) and on the new sceNpUnknown_8weiQyIdI3A line; rebased on main. Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6225346404 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6056#issuecomment-6225346404). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T21:49:33Z. --- Checked: both exports throw without touching caller memory, the debt entries are under "Unknown function info", `guest_np_manager` covers both throws and does not link without the change; build and ctest green on current `main`. Added on top of your commit: the trailing period on the `sceNpGetSandboxInfo` debt line (the PR had dropped it) and on the new `sceNpUnknown_8weiQyIdI3A` line; rebased on `main`. Merging once the full Build is green.
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!6056
No description provided.