victory: follow the F1 controls choice for prompts (#2197) #2257
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2257"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by cloph-dsp on 2026-11-29T11:06:29Z.
Depends on: #2197
What
With
VICTORY_PROMPTSunset, 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 asgameinput::pads_only_for: GAMEPAD/DUALSENSE keep controller prompts, KEYBOARD gets key prompts, and AUTO follows MOUSE AND KEYBOARD. An explicitVICTORY_PROMPTS=keys|gamepadstill wins.Change
apps/victory/src/run.rs: new pure helperkeyboard_prompts(prompts, controls, mnk)used at the prompt-hook decision; no game state is read.apps/victory/src/run.rstests: synthetic testrun::tests::prompts_follow_the_f1_controls_choice_unless_overriddencovering 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 -Fon base for the new test name: no match (test new).git diff --checkclean.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).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.