launcher: read several overrides typed on one line #31

Manually merged
github merged 1 commit from github-bot/gh-31 into main 2026-12-05 18:19:55 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 15:31 UTC · original
Kal0s-design:fix/overrides-parsing → main · +57 −1 · 1 files · 1 commits · merged 2026-12-05 18:19 UTC

In #7 the overrides were typed on one line, VICTORY_DLSSG=3 VICTORY_DLSSG_DIR="D:\...\dlss5nr". extra() splits only on ; and new lines, so VICTORY_DLSSG got the whole rest of the line as its value. dlssg.rs then fails to parse it as a number and quietly treats it as 0, so FSR FG kept running, and VICTORY_DLSSG_DIR was never set. The quotes around the path would have been kept as part of it too.

extra() now also starts a new setting where a blank is followed by another VICTORY_NAME=, and it takes off one pair of matching quotes around a value. A value with blanks in it, such as a path under "My Games", stays whole, because it is only cut before something that is a valid setting name followed by =. Lone or mismatched quotes are left as typed. Everything already accepted is read the same way as before, and the existing test still passes unchanged.

The new test covers the line from #7, a path with blanks, a quoted value with blanks, mismatched quotes, and a blank before something that is not a setting name. cargo test -p victory --bin victory launcher::choices passes with 4 tests. Clippy reports nothing in choices.rs. A workspace clippy run with -D warnings stops earlier on lints that are already on main, in victory-dxil, dlssg.rs and neural.rs, and #25 touches those.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 15:31 UTC · [original](https://github.com/VGLALALA/ReVictory-RDNA3/pull/31) `Kal0s-design:fix/overrides-parsing` → `main` · +57 −1 · 1 files · 1 commits · merged 2026-12-05 18:19 UTC In #7 the overrides were typed on one line, `VICTORY_DLSSG=3 VICTORY_DLSSG_DIR="D:\...\dlss5nr"`. extra() splits only on ; and new lines, so VICTORY_DLSSG got the whole rest of the line as its value. dlssg.rs then fails to parse it as a number and quietly treats it as 0, so FSR FG kept running, and VICTORY_DLSSG_DIR was never set. The quotes around the path would have been kept as part of it too. extra() now also starts a new setting where a blank is followed by another VICTORY_NAME=, and it takes off one pair of matching quotes around a value. A value with blanks in it, such as a path under "My Games", stays whole, because it is only cut before something that is a valid setting name followed by =. Lone or mismatched quotes are left as typed. Everything already accepted is read the same way as before, and the existing test still passes unchanged. The new test covers the line from #7, a path with blanks, a quoted value with blanks, mismatched quotes, and a blank before something that is not a setting name. cargo test -p victory --bin victory launcher::choices passes with 4 tests. Clippy reports nothing in choices.rs. A workspace clippy run with -D warnings stops earlier on lints that are already on main, in victory-dxil, dlssg.rs and neural.rs, and #25 touches those. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The overrides box was split only on ';' and new lines, so
"VICTORY_DLSSG=3 VICTORY_DLSSG_DIR=..." gave VICTORY_DLSSG the rest of
the line, which parses as 0, and never set the folder (#7). A blank
followed by another VICTORY_NAME= now starts a new setting, and one pair
of matching quotes around a value is taken off. Values with blanks stay
whole.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 15:32:38 +00:00
github manually merged commit c040b13e2b into main 2026-12-05 18:19:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.