launcher: read several VICTORY_* overrides typed on one line #138

Manually merged
github merged 1 commit from github-bot/gh-137 into main 2026-12-05 17:25:39 +00:00 AGit
Owner

@⁠SovietBearz0r on GitHub · 2026-12-05 17:16 UTC · original
SovietBearz0r:launcher-one-line-overrides → main · +75 −1 · 1 files · 1 commits · merged 2026-12-05 17:22 UTC

The launcher's "extra settings" text split only on ; and newlines, so several VICTORY_NAME=value settings typed on one line became one setting with a garbage value (VICTORY_DLSSG=3 VICTORY_DLSSG_DIR="D:\...\dlss5nr" → VICTORY_DLSSG = the whole rest, silently ignored downstream; RDNA3 fork issue #7).

Fix

choices::extra() now starts a new setting where a blank is followed by another valid VICTORY_<NAME>=, and strips one pair of matching quotes ("/') around a value. Values with blanks such as C:\My Games\... stay whole unless a valid setting name follows. Existing ;/newline behaviour is unchanged.

Verification

  • cargo test -p victory --bin victory launcher::choices: 5 passed; full binary tests 121 passed, 1 ignored (new tests cover one-line multiple settings, quoted path with spaces, a single trailing value with blanks, ;/newline behaviour, invalid fragments).
  • cargo check -p victory, cargo xtask policy, clippy: clean for the changed file.

Source: ReVictory-RDNA3 PR #31.

**@⁠SovietBearz0r** on GitHub · 2026-12-05 17:16 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/137) `SovietBearz0r:launcher-one-line-overrides` → `main` · +75 −1 · 1 files · 1 commits · merged 2026-12-05 17:22 UTC The launcher's "extra settings" text split only on `;` and newlines, so several `VICTORY_NAME=value` settings typed on one line became one setting with a garbage value (`VICTORY_DLSSG=3 VICTORY_DLSSG_DIR="D:\...\dlss5nr"` → `VICTORY_DLSSG` = the whole rest, silently ignored downstream; RDNA3 fork issue #7). ## Fix `choices::extra()` now starts a new setting where a blank is followed by another valid `VICTORY_<NAME>=`, and strips one pair of matching quotes (`"`/`'`) around a value. Values with blanks such as `C:\My Games\...` stay whole unless a valid setting name follows. Existing `;`/newline behaviour is unchanged. ## Verification - `cargo test -p victory --bin victory launcher::choices`: 5 passed; full binary tests **121 passed, 1 ignored** (new tests cover one-line multiple settings, quoted path with spaces, a single trailing value with blanks, `;`/newline behaviour, invalid fragments). - `cargo check -p victory`, `cargo xtask policy`, clippy: clean for the changed file. Source: ReVictory-RDNA3 PR #31.
extra() split only on ';' and new lines, so VICTORY_DLSSG=3
VICTORY_DLSSG_DIR="D:\...\dlss5nr" typed on one line became a single
setting: VICTORY_DLSSG got the rest of the line (dlssg.rs then read it as
0) and VICTORY_DLSSG_DIR was never set, quotes and all.

extra() now also starts a new setting where a blank is followed by
another VICTORY_NAME=, and takes one pair of matching quotes off a value.
A value with blanks in it (a path under "My Games") stays whole unless a
setting name follows a blank inside it; lone or mismatched quotes are left
as typed. Everything accepted before is read the same way, as the new
tests check.

Ported from ReVictory-RDNA3 PR #31 (VGLALALA/ReVictory-RDNA3).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 17:18:40 +00:00
github manually merged commit c01cfe6696 into main 2026-12-05 17:25:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.