fix(libScePad): silent stub for scePadUnknown_zBsgF0q8DIM #6281

Closed
mazen320 wants to merge 1 commit from upstream-pr/6281 into main
mazen320 commented 2026-10-15 08:55:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:55:52Z.


What

scePadUnknown_zBsgF0q8DIM (NID zBsgF0q8DIM) no longer calls NotImplemented_nid_no_patch. It returns 0.

PPSA03671 (Marvel's Wolverine) imports it and fails to load without the export. No aerolib name hashes to the NID. Debt moved into Silent stubs. New guest_pad_unknown_zbsg covers the return.

Silent stub evidence (CONTRIBUTING)

A silent stub is allowed only when it unblocks a title and only affects the UI (or is otherwise safe to ignore). Load-stop alone is not enough (see #6274).

Check Evidence
Unblocks a title PPSA03671 fails to load without this export
No measured pad behaviour skipped The title executable has an import stub for the NID but no call, jump, or address reference to that stub (libScePad.md)
No pad state updated Signature unknown; the stub returns 0 and does not touch handles, vibration, triggers, or motion

So the stub is load-only on the observed binary: returning 0 does not skip a call site that was found. If reviewers want a stricter “named UI surface only” reading without never-called evidence, this PR can be withdrawn.

Tested

Windows 11. python tools/check_conventions.py --base upstream/main passed. Full guest_pad_unknown_zbsg run needs a configure that picks up the new CMake test target (not re-run here against the dirty main build tree).

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: PPSA03671 Wolverine load for this unknown pad NID
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870729971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:55:52Z. --- ### What `scePadUnknown_zBsgF0q8DIM` (NID `zBsgF0q8DIM`) no longer calls `NotImplemented_nid_no_patch`. It returns 0. PPSA03671 (Marvel's Wolverine) imports it and fails to load without the export. No aerolib name hashes to the NID. Debt moved into Silent stubs. New `guest_pad_unknown_zbsg` covers the return. ### Silent stub evidence ([CONTRIBUTING](https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md)) A silent stub is allowed only when it unblocks a title and only affects the UI (or is otherwise safe to ignore). Load-stop alone is not enough (see #6274). | Check | Evidence | | --- | --- | | Unblocks a title | PPSA03671 fails to load without this export | | No measured pad behaviour skipped | The title executable has an import stub for the NID but **no call, jump, or address reference** to that stub ([libScePad.md](https://github.com/boykopovar/AnyPS5/blob/fix/pad-unknown-zbsgf0q8dim-silent-stub/docs/dev/debt/libScePad.md)) | | No pad state updated | Signature unknown; the stub returns 0 and does not touch handles, vibration, triggers, or motion | So the stub is load-only on the observed binary: returning 0 does not skip a call site that was found. If reviewers want a stricter “named UI surface only” reading without never-called evidence, this PR can be withdrawn. ### Tested Windows 11. `python tools/check_conventions.py --base upstream/main` passed. Full `guest_pad_unknown_zbsg` run needs a configure that picks up the new CMake test target (not re-run here against the dirty main build tree). ### 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: PPSA03671 Wolverine load for this unknown pad NID - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 08:56:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T08:56:35Z.


Progress report (adb0e7a → cae76c4)

📈 System libraries: 89.46% (+0.02%, +1 implemented functions)

✅ 1 implemented
Library Name
libScePad scePadUnknown_zBsgF0q8DIM
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libScePad scePadUnknown_zBsgF0q8DIM
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188340884 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281#issuecomment-6188340884). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:56:35Z. --- <!-- progress-report --> ### Progress report (adb0e7a → cae76c4) 📈 **System libraries**: 89.46% (+0.02%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libScePad | `scePadUnknown_zBsgF0q8DIM` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libScePad | `scePadUnknown_zBsgF0q8DIM` | </details>
mazen320 commented 2026-10-15 08:58:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:58:03Z.


Overlap (#6283)

Sibling unknown-NID silent stub (n3kSX62fgNo) also edits libScePad debt Silent stubs + CMake guest tests. Rebase if #6283 lands first. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188365654 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281#issuecomment-6188365654). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:58:03Z. --- ### Overlap (#6283) Sibling unknown-NID silent stub (`n3kSX62fgNo`) also edits `libScePad` debt Silent stubs + CMake guest tests. Rebase if #6283 lands first. Depends on: none.
github-actions[bot] commented 2026-10-15 08:58:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T08:58:13Z.


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
PR 6600 docs/dev/debt/libScePad.md L12

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 5038 core/libs/prx/libScePad/Export.cpp
docs/dev/debt/libScePad.md
PR 6044 core/libs/prx/libScePad/CMakeLists.txt
PR 6447 docs/dev/debt/libScePad.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188368811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281#issuecomment-6188368811). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:58:13Z. --- <!-- 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 | |---|---|---|---| | [PR 6600](https://www.github.com/boykopovar/AnyPS5/pull/6600) | `docs/dev/debt/libScePad.md` [L12](https://github.com/boykopovar/AnyPS5/blob/f05fc7d953d30160cb05411875b2824fd10acc15/docs/dev/debt/libScePad.md#L12) | | | 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 5038](https://www.github.com/boykopovar/AnyPS5/pull/5038) | `core/libs/prx/libScePad/Export.cpp`<br>`docs/dev/debt/libScePad.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libScePad/CMakeLists.txt` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `docs/dev/debt/libScePad.md` |
mazen320 commented 2026-10-15 09:33:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:33:38Z.


Overlap

Bot flagged docs/dev/debt/libScePad.md with #5928. This PR adds one Pad unknown-NID silent stub (zBsgF0q8DIM) + debt line. No shared export implementation. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188998965 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281#issuecomment-6188998965). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:33:38Z. --- ### Overlap Bot flagged `docs/dev/debt/libScePad.md` with #5928. This PR adds one Pad unknown-NID silent stub (`zBsgF0q8DIM`) + debt line. No shared export implementation. **Depends on: none.**
mazen320 commented 2026-10-15 15:36:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T15:36:49Z.


Silent-stub evidence (re #6274 bar)

CONTRIBUTING allows a silent stub only when it unblocks a title and only affects the UI (or is otherwise safe to ignore).

For scePadUnknown_zBsgF0q8DIM (PPSA03671):

  • The title has an import stub with no observed call, jump, or address reference to that stub, so returning 0 does not skip measured pad behavior.
  • Signature stays unknown; no pad state is updated.

Happy to withdraw this too if “never called” is not enough without a named UI surface.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195960204 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281#issuecomment-6195960204). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:36:49Z. --- ### Silent-stub evidence (re #6274 bar) CONTRIBUTING allows a silent stub only when it unblocks a title **and** only affects the UI (or is otherwise safe to ignore). For `scePadUnknown_zBsgF0q8DIM` (PPSA03671): - The title has an import stub with **no observed call, jump, or address reference** to that stub, so returning 0 does not skip measured pad behavior. - Signature stays unknown; no pad state is updated. Happy to withdraw this too if “never called” is not enough without a named UI surface.
oneandonlydean commented 2026-10-17 21:41:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T21:41:10Z.


@mazen320 thanks for this, and for the follow-up evidence.

We're closing it, as you offered. APS5_EXPORT("zBsgF0q8DIM", scePadUnknown_zBsgF0q8DIM) is already on main (since babc68df7), so PPSA03671 loads there now. What's left in this PR only changes what happens when the function is called: today it throws "not implemented", and with the PR it would quietly return 0. Your own check shows PPSA03671 never calls it, so the stub doesn't help that title, and for anything that does call it we'd rather keep the error visible than hide an unknown function behind a 0. That matches how #6274 was handled.

If you find a title that actually calls scePadUnknown_zBsgF0q8DIM, we'd welcome a new PR with that call site and what the title does with the result.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241595858 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6281#issuecomment-6241595858). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T21:41:10Z. --- @mazen320 thanks for this, and for the follow-up evidence. We're closing it, as you offered. `APS5_EXPORT("zBsgF0q8DIM", scePadUnknown_zBsgF0q8DIM)` is already on main (since babc68df7), so PPSA03671 loads there now. What's left in this PR only changes what happens when the function is called: today it throws "not implemented", and with the PR it would quietly return 0. Your own check shows PPSA03671 never calls it, so the stub doesn't help that title, and for anything that does call it we'd rather keep the error visible than hide an unknown function behind a 0. That matches how #6274 was handled. If you find a title that actually calls `scePadUnknown_zBsgF0q8DIM`, we'd welcome a new PR with that call site and what the title does with the result.

Pull request closed

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!6281
No description provided.