victory play: empty lines the F1 menu does not offer leave this release's values #4190
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4190"
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 RustyTheDalek on 2026-11-30T17:16:05Z.
What it changes
victory-settings.txtkeeps everyVICTORY_line it finds when the F1 menu saves (Menu::savekeeps what it does not write), andvictory playapplies every non-VICTORY_MENU_line overSETTINGS, an empty value removing the variable. That is right for the menu's own rows, whose empty value is their "unset" choice. For a line the menu does not offer, it is not: such lines come from other builds' menus writing the same file, and an empty one takes away the valueSETTINGSgives.On a Radeon RX 9070 XT the file held
VICTORY_POOL_SMALL=andVICTORY_RIPE_BLOCKS=, written by another build's menu. Neither is a row of this menu.victory playremoved both, so both ran with their code defaults instead of the0thatSETTINGSsets (small pooled textures are off here because trees flashed in play). The start said nothing about it.victory_gpu::menu_offers(var)(re-exported byvictory-hle): whether the F1 menu has a row forvar.victory play: an empty line for a setting the menu does not offer is left out (leftover). A value still applies, whoever wrote it, and=0still turns a switch off by hand. The README's hand edits are all either menu rows (VICTORY_MFG_UNLOCKER=) or non-empty (VICTORY_PAD_BUTTONS=...), so they keep working.menu_file_note), so a value another build left behind can be seen in a report:Menu::saveno longer writes such empty lines back, so the file cleans itself at the next save.How it was tested
VICTORY_POOL_SMALLand noVICTORY_RIPE_BLOCKSat all (removed by the empty lines).VICTORY_POOL_SMALL=0andVICTORY_RIPE_BLOCKS=0, and the two note lines above.empty_lines_the_menu_does_not_offer_leave_this_releases_values(that settings file's lines).cargo testpassed for the crates it touches: yes,cargo test -p victory -- play::andcargo test -p victory-gpu --lib -- host::menu::. Clippy reports no warning on the lines this changes.Checked for overlap
NAME=clear a variable even when it is kept from the surroundings. With this change an empty line for a setting the menu does not offer is left out instead, andNAME=0is the way to turn such a switch off by hand. If an empty hand-written line must keep meaning "unset", the alternative is to leavevictory playas it is and only stopMenu::savekeeping empty lines it did not write; the start note would still show them.VICTORY_FRAMEGEN_X) fromsettings(); this is the general case for empty lines.host::menu::runs on several threads).🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T09:56:33Z.
I cherry-picked your
50b4f71asettings fix onto currentmain5fabb46e, preserving your Git authorship. The one conflict was inhost/menu.rs. The rebased change keeps the newmenu_offershelper and the currentsettings_filecode. All added and removed lines match your original patch, and the comparison with main contains one commit touching five settings files. Rebased commit64a3784101f5216d92bec1e82fdf920fbf3a34b7Your
empty_lines_the_menu_does_not_offer_leave_this_releases_valuestest passed on Windows/MSVC with Rust 1.98.1. The exact staged diff passedcargo xtask policy --staged.The rebased commit is ready for your review and, if you agree with the conflict resolution, for use in this PR.
AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:46:06Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed