fix(libScePad): silent stub for scePadUnknown_zBsgF0q8DIM #6281
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6281"
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 mazen320 on 2026-10-15T08:55:52Z.
What
scePadUnknown_zBsgF0q8DIM(NIDzBsgF0q8DIM) no longer callsNotImplemented_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_zbsgcovers 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).
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/mainpassed. Fullguest_pad_unknown_zbsgrun needs a configure that picks up the new CMake test target (not re-run here against the dirty main build tree).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)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
scePadUnknown_zBsgF0q8DIM⚪ 1 behaviourally empty (constant return or throw)
scePadUnknown_zBsgF0q8DIMImported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:58:03Z.
Overlap (#6283)
Sibling unknown-NID silent stub (
n3kSX62fgNo) also editslibScePaddebt Silent stubs + CMake guest tests. Rebase if #6283 lands first. Depends on: none.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.
main)docs/dev/debt/libScePad.mdL12Some 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.
core/libs/prx/libScePad/Export.cppdocs/dev/debt/libScePad.mdcore/libs/prx/libScePad/CMakeLists.txtdocs/dev/debt/libScePad.mdImported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:33:38Z.
Overlap
Bot flagged
docs/dev/debt/libScePad.mdwith #5928. This PR adds one Pad unknown-NID silent stub (zBsgF0q8DIM) + debt line. No shared export implementation. Depends on: none.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):Happy to withdraw this too if “never called” is not enough without a named UI surface.
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 (sincebabc68df7), 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