feat(libScePad): declare the unknown import zBsgF0q8DIM #4962

Merged
fdfawef324 merged 1 commit from upstream-pr/4962 into main 2026-10-14 06:38:31 +00:00
fdfawef324 commented 2026-10-13 06:38:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-13T06:38:37Z.


What

Marvel's Wolverine (PPSA03671) stops at load with unresolved ELF import zBsgF0q8DIM from libScePad.prx. This exports that NID from libScePad as scePadUnknown_zBsgF0q8DIM, following scePadUnknown_n3kSX62fgNo: APS5_EXPORT with the NID, declared without parameters, and the body calls NotImplemented_nid_no_patch(__func__). With this change, tools/import_audit.py over the title's registries lists no absent import (the title was not run with it), and a call fails with a clear NotImplemented error naming the export.

The name is still unknown. The aerolib list pinned in tools/nid_names.py has no entry for the NID. I hashed with compute_nid, and nothing matched:

  • every scePad* name in SharpProspero (Interop/Pad/Pad.cs), shadPS4 (src/core/libraries/pad/pad.h, pad.cpp), OpenOrbis (include/orbis/Pad.h, PadTracker.h, the Pad docs page), aerolib and our Export.cpp;
  • about 6.1 million generated scePad* / scePadVrController* / scePadHd* / scePadHaptic* / sceUser* combinations of common verbs, nouns (trigger effect and its states, motion sensor state, angular velocity, tilt correction, vibration, haptics, HD, audio, light bar, player LED, controller and device information, and others) and suffixes (Ext, Ext2, ForMultiplePads, State(s) and others).

How the title calls it: the executable has an import stub for this NID, but no direct call or jump to that stub, no RIP-relative reference to it or to its GOT slot (other than from the stub itself), and no absolute copy of its address. With the same scan, the stubs for scePadReadState and scePadSetTriggerEffect do show their callers. So the argument count and whether the result is used could not be found, and the debt entry says so. It goes under Unknown function info in docs/dev/debt/libScePad.md.

No test is added. Main declared the PPSA02530 and PPSA29866 imports without one, and GuestPPSA01530Exports.cpp only calls each declared name and expects the generic not implemented error. A missing export already fails at startup, so adding to that list would be the export-only test CONTRIBUTING forbids.

Overlap: #4620 (open) also adds libScePad stubs and edits docs/dev/debt/libScePad.md. None of its 23 names hashes to this NID, but the two may conflict textually at the end of both files.

Tested

Windows Server 2025, WinLibs GCC 15.2.0, Release, main ea2bbefb2 plus this commit:

  • tools/import_audit.py over copies of the title's registries (app plus the libc, libRenoirCore, libcohtml and libSceNpCppWebApi guest registries), with the title's own modules passed as --modules. On main, 1 import is absent (zBsgF0q8DIM, libScePad). With this change, 0 are absent and the import is listed as a throwing stub. The other 13 throwing stubs the title imports are unchanged: sceAcmBatchJobPriority, sceAgcDriverRequestCaptureStart/Stop, sceAudioOut2Set3DLatency, sceAudioOut2MasteringInit/SetParam, sceSaveDataGetConvertProgress, sceSaveDataCancel, _umtx_op, sceCoredumpGetStopInfoGpu_Agc, sceCoredumpSetUserDataType, sceCoredumpGetStopInfoCpu, __tls_get_addr.
  • ctest guest_pad and guest_ppsa01530_exports pass.
  • tools/check_conventions.py passes.

The title was not run.

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: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4839396966 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4962). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-13T06:38:37Z. --- ### What Marvel's Wolverine (PPSA03671) stops at load with `unresolved ELF import zBsgF0q8DIM from libScePad.prx`. This exports that NID from libScePad as `scePadUnknown_zBsgF0q8DIM`, following `scePadUnknown_n3kSX62fgNo`: `APS5_EXPORT` with the NID, declared without parameters, and the body calls `NotImplemented_nid_no_patch(__func__)`. With this change, `tools/import_audit.py` over the title's registries lists no absent import (the title was not run with it), and a call fails with a clear NotImplemented error naming the export. The name is still unknown. The aerolib list pinned in `tools/nid_names.py` has no entry for the NID. I hashed with `compute_nid`, and nothing matched: - every `scePad*` name in SharpProspero (`Interop/Pad/Pad.cs`), shadPS4 (`src/core/libraries/pad/pad.h`, `pad.cpp`), OpenOrbis (`include/orbis/Pad.h`, `PadTracker.h`, the Pad docs page), aerolib and our `Export.cpp`; - about 6.1 million generated `scePad*` / `scePadVrController*` / `scePadHd*` / `scePadHaptic*` / `sceUser*` combinations of common verbs, nouns (trigger effect and its states, motion sensor state, angular velocity, tilt correction, vibration, haptics, HD, audio, light bar, player LED, controller and device information, and others) and suffixes (`Ext`, `Ext2`, `ForMultiplePads`, `State(s)` and others). How the title calls it: the executable has an import stub for this NID, but no direct call or jump to that stub, no RIP-relative reference to it or to its GOT slot (other than from the stub itself), and no absolute copy of its address. With the same scan, the stubs for `scePadReadState` and `scePadSetTriggerEffect` do show their callers. So the argument count and whether the result is used could not be found, and the debt entry says so. It goes under Unknown function info in `docs/dev/debt/libScePad.md`. No test is added. Main declared the PPSA02530 and PPSA29866 imports without one, and `GuestPPSA01530Exports.cpp` only calls each declared name and expects the generic `not implemented` error. A missing export already fails at startup, so adding to that list would be the export-only test CONTRIBUTING forbids. Overlap: #4620 (open) also adds libScePad stubs and edits `docs/dev/debt/libScePad.md`. None of its 23 names hashes to this NID, but the two may conflict textually at the end of both files. ### Tested Windows Server 2025, WinLibs GCC 15.2.0, Release, `main` ea2bbefb2 plus this commit: - `tools/import_audit.py` over copies of the title's registries (`app` plus the libc, libRenoirCore, libcohtml and libSceNpCppWebApi guest registries), with the title's own modules passed as `--modules`. On `main`, 1 import is absent (`zBsgF0q8DIM`, libScePad). With this change, 0 are absent and the import is listed as a throwing stub. The other 13 throwing stubs the title imports are unchanged: sceAcmBatchJobPriority, sceAgcDriverRequestCaptureStart/Stop, sceAudioOut2Set3DLatency, sceAudioOut2MasteringInit/SetParam, sceSaveDataGetConvertProgress, sceSaveDataCancel, _umtx_op, sceCoredumpGetStopInfoGpu_Agc, sceCoredumpSetUserDataType, sceCoredumpGetStopInfoCpu, __tls_get_addr. - ctest `guest_pad` and `guest_ppsa01530_exports` pass. - `tools/check_conventions.py` passes. The title was not run. ### 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: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-13 06:38:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T06:38:59Z.


Progress report (d1b3aa1 → babc68d)

📉 System libraries: 88.17% (-0.02%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libScePad scePadUnknown_zBsgF0q8DIM
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6139844689 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4962#issuecomment-6139844689). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T06:38:59Z. --- <!-- progress-report --> ### Progress report (d1b3aa1 → babc68d) 📉 **System libraries**: 88.17% (-0.02%, +1 declared functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libScePad | `scePadUnknown_zBsgF0q8DIM` | </details>
github-actions[bot] commented 2026-10-13 06:50:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T06:50:48Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5038 docs/dev/debt/libScePad.md L10
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6140006274 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4962#issuecomment-6140006274). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T06:50:48Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5038 | `docs/dev/debt/libScePad.md` [L10](https://github.com/boykopovar/AnyPS5/blob/f87799aa3aebb4be9d27a1d04741218f0d622479/docs/dev/debt/libScePad.md#L10) | | |
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!4962
No description provided.