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

Open
github-bot wants to merge 1 commit from github-bot/gh-2257 into main AGit
Owner

@⁠cloph-dsp on GitHub · 2026-11-29 11:06 UTC · original
cloph-dsp:fix/prompt-default-follows-controls → main · +40 −1 · 1 files · 1 commits · open

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).

**@⁠cloph-dsp** on GitHub · 2026-11-29 11:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2257) `cloph-dsp:fix/prompt-default-follows-controls` → `main` · +40 −1 · 1 files · 1 commits · open 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:12:04 +00:00
This pull request has changes conflicting with the target branch.
  • apps/victory/src/run.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2257/head:github-bot/gh-2257'
git switch 'github-bot/gh-2257'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2257'
git switch 'github-bot/gh-2257'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2257'
git switch 'github-bot/gh-2257'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2257'
git switch 'main'
git merge --squash 'github-bot/gh-2257'
git switch 'main'
git merge --ff-only 'github-bot/gh-2257'
git switch 'main'
git merge 'github-bot/gh-2257'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2257
No description provided.