feat(libScePad): declare the VR controller exports #905
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/905"
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 gookie-dev on 2026-10-06T15:18:02Z.
What
scePadVrControllerRead(306mCg0ibh8) andscePadVrControllerGetDeviceInformation(mbJHDdjhVeY) were not exported by any library, so a title that imports them fails eager binding beforemain.Balatro (PPSA21402, 01.015.000) imports both from
libScePad. It opens its pads in a loop over the port types and calls the two VR entry points only for the PSVR2 Sense controller types: at0x1cc4c9the converted executable computestype - 3and skips the call when it is above 1, and thescePadOpenresult is checked for an error first.ValidPortaccepts onlyPAD_PORT_TYPE_STANDARD,PAD_PORT_TYPE_SPECIALand the systemPAD_PORT_TYPE_REMOTE, so those opens already fail and the VR path is never entered.The two exports are declared as throwing stubs, as the VR controller port types are not supported. Parameters are left off, as in #734: no title here calls them, so their signatures are unverified.
Tested
Pop!_OS 24.04 (kernel 7.1.5), GCC 13.3.0, CMake 3.28.3, Ninja, Release,
BUILD_TESTING=ON, SPIRV-Tools validation off.libspackaging pass.libScePad.prxis NID-patched and exports306mCg0ibh8andmbJHDdjhVeY.ctest: 359 of 359 pass, the same as on unmodifiedmainin this environment.--to-intel: the two imports resolve and startup no longer stops on them. The title does not reach the menu; it stops later for unrelated reasons, so no rendering, audio, input or gameplay claim is made. Neither stub was reached (noNotImplementedoutput).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T21:19:33Z.
Progress report (
5895ea7→c80d01c)📉 System libraries: 86.94% (-0.06%, +2 declared functions)
🆕 2 declared as stubs
scePadVrControllerGetDeviceInformationscePadVrControllerRead