feat(libScePad): declare the unknown import zBsgF0q8DIM #4962
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4962"
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 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 asscePadUnknown_zBsgF0q8DIM, followingscePadUnknown_n3kSX62fgNo:APS5_EXPORTwith the NID, declared without parameters, and the body callsNotImplemented_nid_no_patch(__func__). With this change,tools/import_audit.pyover 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.pyhas no entry for the NID. I hashed withcompute_nid, and nothing matched: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 ourExport.cpp;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
scePadReadStateandscePadSetTriggerEffectdo 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 indocs/dev/debt/libScePad.md.No test is added. Main declared the PPSA02530 and PPSA29866 imports without one, and
GuestPPSA01530Exports.cpponly calls each declared name and expects the genericnot implementederror. 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,
mainea2bbefb2plus this commit:tools/import_audit.pyover copies of the title's registries (appplus the libc, libRenoirCore, libcohtml and libSceNpCppWebApi guest registries), with the title's own modules passed as--modules. Onmain, 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.guest_padandguest_ppsa01530_exportspass.tools/check_conventions.pypasses.The title was not run.
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)🤖 Generated with Claude Code
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
scePadUnknown_zBsgF0q8DIMImported 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.
main)docs/dev/debt/libScePad.mdL10