play: respect last-wins unset for VICTORY_FORCE_MFG_RTX40 #2576
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!2576
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2576"
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?
@RanoGames on GitHub · 2026-11-29 14:31 UTC · original
RanoGames:fix/force-mfg-last-wins→main· +64 −8 · 1 files · 1 commits · openWhat it changes
Fixes
VICTORY_FORCE_MFG_RTX40handling inapps/victory/src/play.rs:prepare()previously computedforcedass.get("VICTORY_FORCE_MFG_RTX40").or_else(|| menu.iter().find(...)) == Some("1"). Becausesettings()removes keys fromswhenvictory-settings.txtcontains an empty assignment (VICTORY_FORCE_MFG_RTX40=), a file withVICTORY_FORCE_MFG_RTX40=1followed byVICTORY_FORCE_MFG_RTX40=leftswithout the key, causing.or_else(|| menu.iter().find(...))to match the earlier=1line instead of respecting last-line-wins.VICTORY_FORCE_MFG_RTX40 == "1"check directly intoforce_mfg(&mut s)and removed themenu.iter().find(...)fallback, sincesettings()already resolvesmenu(last-line-wins, empty removes) and--setintos.play::tests::force_mfg_follows_last_setting_and_set_overrides.How it was tested
VICTORY_FORCE_MFG_RTX40=1followed byVICTORY_FORCE_MFG_RTX40=invictory-settings.txtstill appliedforce_mfg.force_mfgonly applies whenVICTORY_FORCE_MFG_RTX40=1is the effective value insaftersettings().cargo testpassed for the crates it touches: yes (cargo test --locked -p victory: 79 unit tests + 1cache_paths+ 2censuspassed;cargo clippy --no-deps --locked -p victory --all-targets -- -D warningspassed)Checked for overlap
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.