Warn on saved F1 menu CLI overrides and add --ignore-menu / --reset-settings #4797

Open
github-bot wants to merge 2 commits from github-bot/gh-4796 into main AGit
Owner

@⁠YounesAH15 on GitHub · 2026-12-01 09:05 UTC · original
YounesAH15:ux/cli-override-guard → main · +115 −1 · 1 files · 2 commits · open

What it changes

Saved F1 menu settings in %LOCALAPPDATA%\victory\victory-settings.txt silently override CLI flags passed to victory play (such as --series-s, --dlss, --fg-type, --framegen, --fps). This adds:

  • A startup notice (menu_override_warnings) listing any CLI options overridden by victory-settings.txt and pointing to --ignore-menu / --reset-settings.
  • --ignore-menu to skip victory-settings.txt for a single run (also preserved in restart_args).
  • --reset-settings to delete victory-settings.txt before starting.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 3050 8 GB, Series S, DLSS Performance, FSR 3 2x, RT default (verified --ignore-menu in game on my-play).
  • Before: stale victory-settings.txt silently forced --fps 1000 / Series X over CLI flags without any console notice.
  • After: startup logs exact overridden options; --ignore-menu skips the saved file cleanly without deleting it.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A (CLI launcher only).
  • cargo test passed for the crates it touches: yes — rebased onto origin/main 5fabb46e at commit 9eee54f9:
    • cargo test -p victory --locked: 95 passed, 0 failed (92 unit including menu_override_warnings_detects_overridden_cli_options, 1 cache_paths, 2 census).
    • cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings: passed cleanly (0 errors, 0 warnings). (Note: full cargo clippy -p victory --all-targets --locked -- -D warnings fails identically on origin/main 5fabb46e due to 5 pre-existing findings in crates/victory-gpu/src/host/{font.rs, menu.rs, panel.rs}, addressed in #4680 / #4708.)

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2868, #4632, #4765
**@⁠YounesAH15** on GitHub · 2026-12-01 09:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4796) `YounesAH15:ux/cli-override-guard` → `main` · +115 −1 · 1 files · 2 commits · open ## What it changes Saved F1 menu settings in `%LOCALAPPDATA%\victory\victory-settings.txt` silently override CLI flags passed to `victory play` (such as `--series-s`, `--dlss`, `--fg-type`, `--framegen`, `--fps`). This adds: - A startup notice (`menu_override_warnings`) listing any CLI options overridden by `victory-settings.txt` and pointing to `--ignore-menu` / `--reset-settings`. - `--ignore-menu` to skip `victory-settings.txt` for a single run (also preserved in `restart_args`). - `--reset-settings` to delete `victory-settings.txt` before starting. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 3050 8 GB, Series S, DLSS Performance, FSR 3 2x, RT default (verified `--ignore-menu` in game on `my-play`). - Before: stale `victory-settings.txt` silently forced `--fps 1000` / Series X over CLI flags without any console notice. - After: startup logs exact overridden options; `--ignore-menu` skips the saved file cleanly without deleting it. - For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A (CLI launcher only). - `cargo test` passed for the crates it touches: yes — rebased onto `origin/main` `5fabb46e` at commit `9eee54f9`: - `cargo test -p victory --locked`: **95 passed, 0 failed** (92 unit including `menu_override_warnings_detects_overridden_cli_options`, 1 `cache_paths`, 2 `census`). - `cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings`: passed cleanly (0 errors, 0 warnings). *(Note: full `cargo clippy -p victory --all-targets --locked -- -D warnings` fails identically on `origin/main` `5fabb46e` due to 5 pre-existing findings in `crates/victory-gpu/src/host/{font.rs, menu.rs, panel.rs}`, addressed in #4680 / #4708.)* ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2868, #4632, #4765
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:10:53 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 09:38 UTC · original

The override message can diverge from the launch settings. On 9eee54f:

  • --framegen 4 with a saved legacy VICTORY_MENU_FRAMEGEN=1 still launches at 4×. The notice reports 4x -> 2x.
  • Series S with Performance and only VICTORY_MENU_S_RES=360 saved launches at Ultra Performance. The notice reports no DLSS override.

Proposed commit compares the requested settings and the launch plan using the same resolver. The exact Windows comparison drops the first notice and reports dlss (performance -> ultraperformance) for the second. An actual override to frame generation off and 30 FPS still produces both notices. The patch also covers these two inputs in the existing warning test. cargo check --locked -p victory --bin victory --jobs 2 passed. No game run.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 09:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4796#issuecomment-7306991061) The override message can diverge from the launch settings. On `9eee54f`: - `--framegen 4` with a saved legacy `VICTORY_MENU_FRAMEGEN=1` still launches at 4×. The notice reports `4x -> 2x`. - Series S with Performance and only `VICTORY_MENU_S_RES=360` saved launches at Ultra Performance. The notice reports no DLSS override. [Proposed commit](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/4a27f0abb9a0bf7b7dd203c5ce902ff0c1fafe1b) compares the requested settings and the launch plan using the same resolver. The exact Windows comparison drops the first notice and reports `dlss (performance -> ultraperformance)` for the second. An actual override to frame generation off and 30 FPS still produces both notices. The patch also covers these two inputs in the existing warning test. `cargo check --locked -p victory --bin victory --jobs 2` passed. No game run. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit.
Author
Owner

@⁠YounesAH15 on GitHub · 2026-12-01 11:14 UTC · original

Thank you @⁠andrewpozdnakov7-jpg for catching both edge cases!

Cherry-picked your commit (andrewpozdnakov7-jpg/VIctory-NVIDIA@4a27f0ab) onto ux/cli-override-guard at 63ab53db, retaining your Git authorship.

Verified on 63ab53db:

  • cargo test -p victory --locked: 95 passed, 0 failed (92 unit including updated menu_override_warnings_detects_overridden_cli_options, 1 cache_paths, 2 census).
  • cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings: passed with 0 warnings/errors.
**@⁠YounesAH15** on GitHub · 2026-12-01 11:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4796#issuecomment-7309367445) Thank you @⁠andrewpozdnakov7-jpg for catching both edge cases! Cherry-picked your commit (`andrewpozdnakov7-jpg/VIctory-NVIDIA@4a27f0ab`) onto `ux/cli-override-guard` at `63ab53db`, retaining your Git authorship. Verified on `63ab53db`: - `cargo test -p victory --locked`: **95 passed, 0 failed** (`92` unit including updated `menu_override_warnings_detects_overridden_cli_options`, `1` `cache_paths`, `2` `census`). - `cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings`: passed with 0 warnings/errors.
This pull request has changes conflicting with the target branch.
  • apps/victory/src/play.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4797/head:github-bot/gh-4796'
git switch 'github-bot/gh-4796'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4796'
git switch 'github-bot/gh-4796'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4796'
git switch 'github-bot/gh-4796'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4796'
git switch 'main'
git merge --squash 'github-bot/gh-4796'
git switch 'main'
git merge --ff-only 'github-bot/gh-4796'
git switch 'main'
git merge 'github-bot/gh-4796'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4797
No description provided.