Repository navigation
feat(libScePad): read per-title input profiles beside the shared input file - #14313
Conversation
# Conflicts: # core/libs/prx/libSceVideoOut/tests/InputMapping.cpp
# Conflicts: # core/libs/prx/libSceVideoOut/tests/InputMapping.cpp # docs/user/INPUT_MAPPING.md
# Conflicts: # core/libs/prx/libSceVideoOut/src/PadInput.cpp # docs/user/INPUT_MAPPING.md
Re-checked — Windows CI fails in pad tests at 6e6d28cThe hosted Windows job on head What I ran
gh run view 41289152477 --repo boykopovar/AnyPS5 --job 124798085892 --log
gh run view 41288949548 --repo boykopovar/AnyPS5 --job 124797879816 --logResults
PR run, unedited failure linesmain run, selected lines from the log (leader dots shortened)FindingsBlocking: none that I can substantiate from the logs alone. Non-blocking, needed to read the Windows result as clean:
Sources
Not verified
|
Re-checked — Windows pad failures traced to metadata lookupThe changed default constructor now calls a metadata accessor that throws when neither
Please preserve default pad initialization when app metadata is unavailable while applying a title profile when an ID is available, and add coverage for constructing Sources: constructor and title lookup, metadata load failure, invalid-mode test, Windows CI log. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The change is credited to its original author, but the same implementation remains open in #7499, leaving two active PRs for one feature.
What I ran
Reviewed head 6e6d28c5887571a6174e08a2fa6e1b840eac072b against the PR base 5c9837bfe7c5533f2c77c968dd8193157a8c342a; the current main tip is 1f2c1da1fbc2e455b921616cdacb5a714d7fe7ba. The exact head merges cleanly onto current main. Environment: Linux x86_64, Python 3.11.2, Git 2.39.5; no compiler was used.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14313
git diff --check 5c9837bfe7c5533f2c77c968dd8193157a8c342a...6e6d28c5887571a6174e08a2fa6e1b840eac072b
python3 tools/check_conventions.py --base 5c9837bfe7c5533f2c77c968dd8193157a8c342a --head 6e6d28c5887571a6174e08a2fa6e1b840eac072b --title 'feat(libScePad): read per-title input profiles beside the shared input file' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14313-6e6d28c58875/pr-body.md
python3 tools/pr_stack_check.py 14313 --repo boykopovar/AnyPS5
gh pr checks 14313 --repo boykopovar/AnyPS5
gh api repos/boykopovar/AnyPS5/pulls/7499/commits?per_page=100The precheck's isolated checkout could not find the workspace-only ABI and test-quality helper scripts. The C++ input-mapping test was not run locally; hosted CI has an input-mapper result for this head.
Results
| Check | Result |
|---|---|
| Patch whitespace | Passed. |
| Conventions and PR template | Passed. |
| Current-main merge preview | Clean against 1f2c1da1fbc2e455b921616cdacb5a714d7fe7ba. |
Hosted input-mapper check |
Passed on this head. |
| Hosted Windows build | Pending at the last refresh. |
| Linux and specialized hosted jobs | Skipped. |
| Precheck helper coverage | Its ABI and test-quality helper invocations were unavailable in the detached checkout; this is an environment limitation, not a reported project failure. |
Selected raw output
Conventions:
All conventions checks passed.
Findings
Blocking
PR #7499 remains open at head 83021ee52aabb010fb1d2e6dbca8db60a0ddd96f, carries the same five changed paths, and is labeled needs rebase. Its fork is archived, which explains the carry-forward, and the original implementation commit 636cc9e585a42f6d23be667e751f4ae2e653c8a4 is preserved in this PR's history. The repository asks contributors to check for existing work before opening a PR. Please coordinate with #7499's author or the maintainers so one PR is explicitly treated as the successor and only one remains active for this feature.
Non-blocking
The commit history preserves AlxcBTW's original implementation authorship, as the PR description says. This request concerns the two simultaneously open PRs, not that credit.
Sources
- Per-title profile implementation at this PR's reviewed head
- Original implementation commit preserved in both PR histories
- Existing open PR #7499
- Contribution rule to check for existing implementations at current
main - Hosted checks for this PR
Not verified
I did not configure or build locally, run the C++ input-mapping test locally, or test the profile lookup in a game. The Windows hosted job was pending; Linux and specialized jobs were skipped. The author-reported tests from #7499's earlier head are not independent verification of this head.
To get this to a good state
Coordinate which PR will carry the feature, mark the other as superseded, and update this PR's description or discussion with that relationship. I will rerun the no-build checks and recheck hosted CI on the resulting head.
|
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
✅ NVIDIA GPU test: passedPR head
Intermittent validation messages (1, seen once in the parallel run, not reproduced when the test was re-run alone 2 times; not counted against this PR)Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (1, not counted against this PR)Validation IDs already present on main (5 IDs in 367 tests)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
…s mounted PadInput() asked for the title ID while constructing, and GetAppTitleId_nid_postfix throws when there is no param.json or param.sfo, so pad tests and tools that mount no title failed. Return no title ID when neither file exists and let any other metadata error propagate.
e0cf245 to
9528d7d
Compare
✅ NVIDIA GPU test: passedPR head
Failing on main too (2, not counted against this PR)Validation IDs already present on main (5 IDs in 368 tests)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
What
Carried from #7499 by @AlxcBTW (fork archived). Their commit keeps its authorship; the commits added here merge current
mainand change the profile examples to a placeholder title ID.anyps5-input.ini(or the fileANYPS5_INPUT_CONFIGnames) applies to every title. Mouse sensitivity, curve and bindings that suit one title do not suit the next, and the only way to switch is to edit the file or setANYPS5_INPUT_CONFIGfor each launch.Pad::LoadInputMapping(titleId)now reads a second file after the shared one:anyps5-input.<TITLEID>.iniin the same directory as the shared file (beside the executable, or beside the fileANYPS5_INPUT_CONFIGnames), where<TITLEID>is the running title's ID fromGetAppTitleId_nid_postfix. The profile has the same format and overrides only what it lists: an action it names replaces the bindings from the shared file (and the built-in ones), a setting it names replaces the shared value, everything else stays. A missing profile is not an error; an invalid line in one reports the profile's path and line like the shared file does. A title ID is used only if it has at most 32 characters of letters, digits,_and-(Pad::InputProfileName), so an ID can never name a path outside the directory.The parsing loop moved unchanged into one function (
loadInputFile) that both files use; each file keeps its own "first line replaces, later lines add" and "setting given twice" state. With no profile, or no title ID, the result is the same as before.docs/user/INPUT_MAPPING.mdhas a "Per-game profiles" section.Changes against the original PR:
main. InPadInput.cppthe modal dialog and host volume includes and theHostVolumeConfigureFromEnvironment_nid_no_patch()call frommainare kept next to the title ID load;INPUT_MAPPING.mdkeeps both the per-game profiles section andmain's current analog section.INPUT_MAPPING.mdand thepad_input_mappingtest use the placeholder title IDPPSA00001instead of a real title's ID.Tested
-R '^(pad_|guest_pad|video_out_mouse|mouse_input|keyboard_input)'): 9 of 9 passed, among thempad_input_mapping. Not run on Windows. An earlier run of the previous head (39113712815) failed to compile (InputBindingunqualified in the moved loop) and was fixed before this one.pad_input_mapping: profile names (valid IDs, empty, path separator, dot, over the length limit); a profile overrides and adds settings and replaces the bindings of an action it lists; another title ID and no title ID keep the shared file; a partial profile keeps what it does not list; a profile may set a setting the shared file also sets; an invalid profile names its file and line and does not affect other titles.PadInput(GetAppTitleId_nid_postfix, trimmed at the first NUL) is covered only by compiling.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pylists no overlap with a comparable pull request and could not compare feat(input): add native SDL input configuration with ImGui #674, feat(agc,videoout): save the displayed frame as a PNG with a screenshot key #4891 and Macos port #7201 (InputMapping.cpp,PadInput.cpp,InputMapping.hpp, docs); feat(input): add native SDL input configuration with ImGui #674 (an input editor) also changesPadInput.cppandINPUT_MAPPING.md. Based on cdb7ed0.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)