fix(pad): accept vibration mode 5 #5523
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5523"
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 milescoviello on 2026-10-13T22:22:40Z.
What
Crimson Desert (PPSA25286) calls
scePadSetVibrationMode(handle, 5)on its open pad handle at start-up.mainrejects any mode above 3, so the call returnsSCE_PAD_ERROR_INVALID_ARG(0x80920001). The title carries on with the call failed.The modes are not documented:
Advanced) and 2 (Compatible).1e3a9345f), which passes it right afterscePadOpen.INVALID_HANDLE, notINVALID_ARG. Modes above 3 on an open handle could not be measured there.The call now also accepts 5, the value a shipped title passes on an open handle. It keeps rejecting the values no title has been seen to use (4, 6 and above), and the mode is stored as before with no other effect. The libScePad debt entry now lists 5 next to 3 as accepted modes of unknown meaning.
guest_padchecks that mode 5 is accepted and that 4 and 6 are still refused.Rebased onto #5264, which now checks the mode before the handle as the console does: the change is
if (mode > 3 && mode != 5)after itsmode <= 0check, and the debt entry keeps #5264's console measurements and adds mode 5.#5038 rewrites the neighbouring
scePadOpenentry of the libScePad debt file, so whichever of the two lands second needs a one-line rebase there.Tested
Ubuntu 24.04, GCC 13.3 (CI's compiler), Release with CI's configure flags. After the rebase onto
mainfa539dd9b,guest_padagain fails withmain'sExport.cppand passes with the change, andtools/check_conventions.py --base upstream/mainpasses. Before it, onmainbf8dc610e:main'sExport.cppand the new checks,guest_padfails; with the change it passes 20/20.guest_*tests pass in two runs.--to-inteland run on Linux under gdb, logging every libScePad, libSceSaveData, libSceUserService and other service call that returns an error code:main's libScePad,scePadSetVibrationMode(handle 1, mode 5) returns0x80920001.tools/check_conventions.py --base upstream/mainpasses.Not checked on a console.
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 MarcZX10 on 2026-10-13T22:26:52Z.
Review: APPROVED
The change is narrowly scoped: mode 5 is accepted while 4, 6+, and negative values remain rejected, and the regression checks cover those boundaries. The PR also records the remaining uncertainty about mode semantics and the expected one-line rebase with #5264. The current CI checks pass, while platform/build jobs are skipped; I’m relying on the Linux test evidence documented in the PR, not claiming an independent local run.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T21:39:29Z.
Checked the diff,
guest_padand the scoped ctest (34/34) on current main;guest_padfails without theExport.cppchange and passes with it. Debt entry updated accurately; merging.