play: respect last-wins unset for VICTORY_FORCE_MFG_RTX40 #2576
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RanoGames on 2026-11-29T14:31:24Z.
What 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.