libScePad: thirteen exports need their argument lists and checks from the firmware module #15087

Closed
opened 2026-11-02 14:53:41 +00:00 by zaryabzip · 0 comments
zaryabzip commented 2026-11-02 14:53:41 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by zaryabzip on 2026-11-02T14:53:41Z.


What happens

Thirteen libScePad exports that a game can call still throw through NotImplemented_nid_no_patch on every call:

  • scePadGetCapability, scePadGetDeviceInfo, scePadGetDeviceId, scePadGetVersionInfo and scePadGetExtensionUnitInfo;
  • scePadGetIdleCount, scePadGetControllerIdleCount and scePadGetActiveTime;
  • scePadReadStateExt and scePadReadHistory;
  • scePadOpenExt2, scePadGetInfoByPortType and scePadSetPS4BcVibrationMode.

Each one is declared without parameters, because no prototype is known.

What's known

  • AnyPS5 already answers the handle calls a title uses at start-up, from the firmware where it was measured: scePadInit, scePadGetHandle, scePadOpen, scePadReadState, scePadRead, scePadGetControllerInformation, scePadGetExtControllerInformation, the light bar, vibration and trigger-effect calls, and others.
  • shadPS4 0614ce32 returns 0 from all thirteen with a (STUBBED) log, except scePadReadStateExt, which it passes to scePadReadState with the comment "We don't currently support extensions".
  • No open pull request or issue touches these names. I searched every open PR's diff for them.

What would settle it

For each export, from firmware 13.42's libScePad.sprx:

  • the argument list, with the types inferred from register use as before;
  • the checks, with their order and error codes;
  • what happens past them: a fixed answer, an answer computed from the handle's state in the library, or a call to the pad driver or service.

Specific questions:

  1. Is scePadGetCapability a fixed table per controller type? scePadGetControllerInformation already reports the type here.
  2. Do scePadGetIdleCount, scePadGetControllerIdleCount and scePadGetActiveTime read counters the library keeps from its reads, or ask the driver?
  3. Does scePadReadStateExt write the same layout as scePadReadState plus an extension block, and how large is that block?
  4. Which of them answer for an unopened handle, or before scePadInit?

Calls that only reach the driver or service can stay unsupported. Their local checks and argument lists would still replace the current placeholders.

@BunnyFl's 13.42 module runs (#13680, #13682, #13728, #13737) would settle most of this.

What was checked

main at 92d2fdc343; tools/progress.py; shadPS4 0614ce32 (src/core/libraries/pad/pad.cpp); and the diffs of all open PRs.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6164943594 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15087). Originally posted by [zaryabzip](https://github.com/zaryabzip) on 2026-11-02T14:53:41Z. --- ### What happens Thirteen libScePad exports that a game can call still throw through `NotImplemented_nid_no_patch` on every call: - `scePadGetCapability`, `scePadGetDeviceInfo`, `scePadGetDeviceId`, `scePadGetVersionInfo` and `scePadGetExtensionUnitInfo`; - `scePadGetIdleCount`, `scePadGetControllerIdleCount` and `scePadGetActiveTime`; - `scePadReadStateExt` and `scePadReadHistory`; - `scePadOpenExt2`, `scePadGetInfoByPortType` and `scePadSetPS4BcVibrationMode`. Each one is declared without parameters, because no prototype is known. ### What's known - AnyPS5 already answers the handle calls a title uses at start-up, from the firmware where it was measured: `scePadInit`, `scePadGetHandle`, `scePadOpen`, `scePadReadState`, `scePadRead`, `scePadGetControllerInformation`, `scePadGetExtControllerInformation`, the light bar, vibration and trigger-effect calls, and others. - shadPS4 0614ce32 returns 0 from all thirteen with a `(STUBBED)` log, except `scePadReadStateExt`, which it passes to `scePadReadState` with the comment "We don't currently support extensions". - No open pull request or issue touches these names. I searched every open PR's diff for them. ### What would settle it For each export, from firmware 13.42's `libScePad.sprx`: - the argument list, with the types inferred from register use as before; - the checks, with their order and error codes; - what happens past them: a fixed answer, an answer computed from the handle's state in the library, or a call to the pad driver or service. Specific questions: 1. Is `scePadGetCapability` a fixed table per controller type? `scePadGetControllerInformation` already reports the type here. 2. Do `scePadGetIdleCount`, `scePadGetControllerIdleCount` and `scePadGetActiveTime` read counters the library keeps from its reads, or ask the driver? 3. Does `scePadReadStateExt` write the same layout as `scePadReadState` plus an extension block, and how large is that block? 4. Which of them answer for an unopened handle, or before `scePadInit`? Calls that only reach the driver or service can stay unsupported. Their local checks and argument lists would still replace the current placeholders. @BunnyFl's 13.42 module runs (#13680, #13682, #13728, #13737) would settle most of this. ### What was checked `main` at 92d2fdc343; `tools/progress.py`; shadPS4 0614ce32 (`src/core/libraries/pad/pad.cpp`); and the diffs of all open PRs. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#15087
No description provided.