victory: follow the F1 controls choice for prompts (#2197) #2257

Open
cloph-dsp wants to merge 1 commit from upstream-pr/2257 into main
cloph-dsp commented 2026-11-29 11:06:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cloph-dsp on 2026-11-29T11:06:29Z.


Depends on: #2197

What

With VICTORY_PROMPTS unset, the launcher installed keyboard prompts unconditionally, so an F1 run with CONTROLS = GAMEPAD (or MOUSE AND KEYBOARD = OFF with AUTO) still showed keyboard prompts after a restart. The choice now follows the same rule as gameinput::pads_only_for: GAMEPAD/DUALSENSE keep controller prompts, KEYBOARD gets key prompts, and AUTO follows MOUSE AND KEYBOARD. An explicit VICTORY_PROMPTS=keys|gamepad still wins.

Change

  • apps/victory/src/run.rs: new pure helper keyboard_prompts(prompts, controls, mnk) used at the prompt-hook decision; no game state is read.
  • apps/victory/src/run.rs tests: synthetic test run::tests::prompts_follow_the_f1_controls_choice_unless_overridden covering every mode, the AUTO/MNK interaction and the explicit override.

Validation

Windows, Rust 1.100.0/MSVC, per-worktree CARGO_TARGET_DIR, CARGO_BUILD_JOBS=2, --locked:

  • cargo test --locked -p victory --bin victory -- run::tests::prompts_follow_the_f1_controls_choice_unless_overridden --exact --test-threads=1 --quiet → 1 passed, 0 failed, 78 filtered, exit 0.
  • cargo test --locked -p victory --bin victory -- run::tests --test-threads=1 --quiet → 5 passed, 0 failed, 74 filtered, exit 0.
  • git grep -F on base for the new test name: no match (test new). git diff --check clean.

Only the named synthetic test/module was replayed; full workspace suite and clippy were not run locally.

GPU/driver: N/A (pure settings decision, no device, no game). No game data, assets, extracted shaders, DRM or decrypt involved.

AI-assisted (Hy4 flash).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550100501 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2257). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-29T11:06:29Z. --- Depends on: #2197 ## What With `VICTORY_PROMPTS` unset, the launcher installed keyboard prompts unconditionally, so an F1 run with **CONTROLS = GAMEPAD** (or **MOUSE AND KEYBOARD = OFF** with AUTO) still showed keyboard prompts after a restart. The choice now follows the same rule as `gameinput::pads_only_for`: GAMEPAD/DUALSENSE keep controller prompts, KEYBOARD gets key prompts, and AUTO follows MOUSE AND KEYBOARD. An explicit `VICTORY_PROMPTS=keys|gamepad` still wins. ## Change - `apps/victory/src/run.rs`: new pure helper `keyboard_prompts(prompts, controls, mnk)` used at the prompt-hook decision; no game state is read. - `apps/victory/src/run.rs` tests: synthetic test `run::tests::prompts_follow_the_f1_controls_choice_unless_overridden` covering every mode, the AUTO/MNK interaction and the explicit override. ## Validation Windows, Rust 1.100.0/MSVC, per-worktree `CARGO_TARGET_DIR`, `CARGO_BUILD_JOBS=2`, `--locked`: - `cargo test --locked -p victory --bin victory -- run::tests::prompts_follow_the_f1_controls_choice_unless_overridden --exact --test-threads=1 --quiet` → 1 passed, 0 failed, 78 filtered, exit 0. - `cargo test --locked -p victory --bin victory -- run::tests --test-threads=1 --quiet` → 5 passed, 0 failed, 74 filtered, exit 0. - `git grep -F` on base for the new test name: no match (test new). `git diff --check` clean. Only the named synthetic test/module was replayed; full workspace suite and clippy were not run locally. GPU/driver: N/A (pure settings decision, no device, no game). No game data, assets, extracted shaders, DRM or decrypt involved. AI-assisted (Hy4 flash).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2257:upstream-pr/2257'
git switch 'upstream-pr/2257'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2257'
git switch 'upstream-pr/2257'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2257'
git switch 'upstream-pr/2257'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2257'
git switch 'main'
git merge --squash 'upstream-pr/2257'
git switch 'main'
git merge --ff-only 'upstream-pr/2257'
git switch 'main'
git merge 'upstream-pr/2257'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!2257
No description provided.