victory: follow the F1 controls choice for prompts (#2197) #2257
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2257
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@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 · openDepends 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
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.Merge
Merge the changes and update on Forgejo.