feat(libScePad): declare 23 game-facing exports #4620

Closed
iDiesIrae-Req wants to merge 1 commit from upstream-pr/4620 into main
iDiesIrae-Req commented 2026-10-12 16:52:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by iDiesIrae-Req on 2026-10-12T16:52:18Z.


What

Declares 23 libScePad exports as throwing stubs (NotImplemented_nid_no_patch(__func__)). They are declared without parameters because their signatures are unknown, and are recorded in debt/libScePad.md.

scePadGetCapability, scePadGetControllerType, scePadGetDeviceInfo, scePadGetExtensionUnitInfo, scePadGetIdleCount, scePadGetMotionSensorPosition, scePadGetMotionTimerUnit, scePadGetSphereRadius, scePadIsDS4Connected, scePadIsLightBarBaseBrightnessControllable, scePadIsMoveConnected, scePadIsMoveReproductionModel, scePadIsSupportedAudioFunction, scePadIsValidHandle, scePadOpenExt2, scePadReadHistory, scePadReadStateExt, scePadResetLightBarAll, scePadResetLightBarAllByPortType, scePadSetExtensionReport, scePadSetLightBarBaseBrightness, scePadSetLightBarBlinking, scePadVrControllerGetPhysicalUsbConnectionStatus.

The names come from the aerolib NID list pinned in tools/nid_names.py, and each one hashes to its NID. Only game-facing calls were picked. System and internal names in the same list (Leonardo, Lotus, IR code, profile editing, telemetry, process focus, tracker) were left out.

No title is known to import these yet. A title that does now fails with a named not implemented error instead of a missing-import error.

tools/progress.py --compare against main 8a67eb2e6: +23 declared functions, all libScePad.

Rebased onto main 8a67eb2e6.

  • scePadVrControllerGetTriggerEffectStates was dropped from this PR, because main declared it in 147c0db15 ("export the calls PPSA02530 imports").
  • The debt entry moved from TechnicalDebt.md to docs/dev/debt/libScePad.md, following the per-library layout from #4411.

Tested

On Windows 11, WinLibs GCC 15.2.0 r7, Release, main 8a67eb2e6 plus this commit:

  • the libs target builds (Patching NIDs for libScePad, OK);
  • all 24 aerolib NIDs (these 23 plus main's scePadVrControllerGetTriggerEffectStates) are exported by the built libScePad.prx;
  • no name is defined twice in libScePad;
  • tools/check_conventions.py --base origin/main passes.

ctest was not run. No title was run.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4832461488 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4620). Originally posted by [iDiesIrae-Req](https://github.com/iDiesIrae-Req) on 2026-10-12T16:52:18Z. --- ### What Declares 23 libScePad exports as throwing stubs (`NotImplemented_nid_no_patch(__func__)`). They are declared without parameters because their signatures are unknown, and are recorded in [debt/libScePad.md](docs/dev/debt/libScePad.md). `scePadGetCapability`, `scePadGetControllerType`, `scePadGetDeviceInfo`, `scePadGetExtensionUnitInfo`, `scePadGetIdleCount`, `scePadGetMotionSensorPosition`, `scePadGetMotionTimerUnit`, `scePadGetSphereRadius`, `scePadIsDS4Connected`, `scePadIsLightBarBaseBrightnessControllable`, `scePadIsMoveConnected`, `scePadIsMoveReproductionModel`, `scePadIsSupportedAudioFunction`, `scePadIsValidHandle`, `scePadOpenExt2`, `scePadReadHistory`, `scePadReadStateExt`, `scePadResetLightBarAll`, `scePadResetLightBarAllByPortType`, `scePadSetExtensionReport`, `scePadSetLightBarBaseBrightness`, `scePadSetLightBarBlinking`, `scePadVrControllerGetPhysicalUsbConnectionStatus`. The names come from the aerolib NID list pinned in `tools/nid_names.py`, and each one hashes to its NID. Only game-facing calls were picked. System and internal names in the same list (Leonardo, Lotus, IR code, profile editing, telemetry, process focus, tracker) were left out. No title is known to import these yet. A title that does now fails with a named `not implemented` error instead of a missing-import error. `tools/progress.py --compare` against `main` 8a67eb2e6: +23 declared functions, all libScePad. **Rebased onto `main` 8a67eb2e6.** - `scePadVrControllerGetTriggerEffectStates` was dropped from this PR, because `main` declared it in 147c0db15 ("export the calls PPSA02530 imports"). - The debt entry moved from `TechnicalDebt.md` to `docs/dev/debt/libScePad.md`, following the per-library layout from #4411. ### Tested On Windows 11, WinLibs GCC 15.2.0 r7, Release, `main` 8a67eb2e6 plus this commit: - the `libs` target builds (`Patching NIDs for libScePad`, `OK`); - all 24 aerolib NIDs (these 23 plus `main`'s `scePadVrControllerGetTriggerEffectStates`) are exported by the built `libScePad.prx`; - no name is defined twice in libScePad; - `tools/check_conventions.py --base origin/main` passes. ctest was not run. No title was run. ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-13 06:50:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T06:50:06Z.


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
#4962 docs/dev/debt/libScePad.md L10
#5004 docs/dev/debt/libScePad.md L10
#5038 docs/dev/debt/libScePad.md L10
#5125 docs/dev/debt/libScePad.md L10
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6139996554 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4620#issuecomment-6139996554). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T06:50:06Z. --- <!-- 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 | |---|---|---|---| | #4962 | `docs/dev/debt/libScePad.md` [L10](https://github.com/boykopovar/AnyPS5/blob/2f5c3a4bf5d114e611f2ec039f30275d0edab1f4/docs/dev/debt/libScePad.md#L10) | | | | #5004 | `docs/dev/debt/libScePad.md` [L10](https://github.com/boykopovar/AnyPS5/blob/2f5c3a4bf5d114e611f2ec039f30275d0edab1f4/docs/dev/debt/libScePad.md#L10) | | | | #5038 | `docs/dev/debt/libScePad.md` [L10](https://github.com/boykopovar/AnyPS5/blob/2f5c3a4bf5d114e611f2ec039f30275d0edab1f4/docs/dev/debt/libScePad.md#L10) | | | | #5125 | `docs/dev/debt/libScePad.md` [L10](https://github.com/boykopovar/AnyPS5/blob/2f5c3a4bf5d114e611f2ec039f30275d0edab1f4/docs/dev/debt/libScePad.md#L10) | | |
github-actions[bot] commented 2026-10-13 14:44:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T14:44:45Z.


Progress report (8a67eb2 → debcdcf)

📉 System libraries: 87.3% (-0.56%, +23 declared functions)

🆕 23 declared as stubs
Library Name
libScePad scePadGetCapability
libScePad scePadGetControllerType
libScePad scePadGetDeviceInfo
libScePad scePadGetExtensionUnitInfo
libScePad scePadGetIdleCount
libScePad scePadGetMotionSensorPosition
libScePad scePadGetMotionTimerUnit
libScePad scePadGetSphereRadius
libScePad scePadIsDS4Connected
libScePad scePadIsLightBarBaseBrightnessControllable
libScePad scePadIsMoveConnected
libScePad scePadIsMoveReproductionModel
libScePad scePadIsSupportedAudioFunction
libScePad scePadIsValidHandle
libScePad scePadOpenExt2
libScePad scePadReadHistory
libScePad scePadReadStateExt
libScePad scePadResetLightBarAll
libScePad scePadResetLightBarAllByPortType
libScePad scePadSetExtensionReport
libScePad scePadSetLightBarBaseBrightness
libScePad scePadSetLightBarBlinking
libScePad scePadVrControllerGetPhysicalUsbConnectionStatus
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148193530 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4620#issuecomment-6148193530). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T14:44:45Z. --- <!-- progress-report --> ### Progress report (8a67eb2 → debcdcf) 📉 **System libraries**: 87.3% (-0.56%, +23 declared functions) <details> <summary>🆕 23 declared as stubs</summary> | Library | Name | | - | - | | libScePad | `scePadGetCapability` | | libScePad | `scePadGetControllerType` | | libScePad | `scePadGetDeviceInfo` | | libScePad | `scePadGetExtensionUnitInfo` | | libScePad | `scePadGetIdleCount` | | libScePad | `scePadGetMotionSensorPosition` | | libScePad | `scePadGetMotionTimerUnit` | | libScePad | `scePadGetSphereRadius` | | libScePad | `scePadIsDS4Connected` | | libScePad | `scePadIsLightBarBaseBrightnessControllable` | | libScePad | `scePadIsMoveConnected` | | libScePad | `scePadIsMoveReproductionModel` | | libScePad | `scePadIsSupportedAudioFunction` | | libScePad | `scePadIsValidHandle` | | libScePad | `scePadOpenExt2` | | libScePad | `scePadReadHistory` | | libScePad | `scePadReadStateExt` | | libScePad | `scePadResetLightBarAll` | | libScePad | `scePadResetLightBarAllByPortType` | | libScePad | `scePadSetExtensionReport` | | libScePad | `scePadSetLightBarBaseBrightness` | | libScePad | `scePadSetLightBarBlinking` | | libScePad | `scePadVrControllerGetPhysicalUsbConnectionStatus` | </details>
adriadam10 commented 2026-10-13 14:45:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:45:20Z.


Closing this one, for these reasons:

  • It adds 23 exports that only throw NotImplemented, with no parameters because their signatures are unknown. Behaviour is the same as main for any title that calls them (it aborts either way); only the symbol now exists.
  • The description states that no title is known to import them, so nothing here boots, fixes or measures anything. Filling progress gaps is not a reason on its own to add exports.
  • No test and no reference (KytyPS5, shadPS4, FreeBSD, a real title's call site) backs any signature or return value.

You're welcome to reopen, or send a new PR, once a title imports one of these calls and the PR implements it with a signature, behaviour from a reference or call-site evidence, and a test that fails without the change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148205244 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4620#issuecomment-6148205244). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T14:45:20Z. --- Closing this one, for these reasons: - It adds 23 exports that only throw `NotImplemented`, with no parameters because their signatures are unknown. Behaviour is the same as `main` for any title that calls them (it aborts either way); only the symbol now exists. - The description states that no title is known to import them, so nothing here boots, fixes or measures anything. Filling progress gaps is not a reason on its own to add exports. - No test and no reference (KytyPS5, shadPS4, FreeBSD, a real title's call site) backs any signature or return value. You're welcome to reopen, or send a new PR, once a title imports one of these calls and the PR implements it with a signature, behaviour from a reference or call-site evidence, and a test that fails without the change.

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