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

Open
YounesAH15 wants to merge 2 commits from upstream-pr/4796 into main
YounesAH15 commented 2026-12-01 09:05:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by YounesAH15 on 2026-12-01T09:05:38Z.


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 #4679 / #4707.)

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2868, #4631, #4764
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5582499870 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4796). Originally posted by [YounesAH15](https://github.com/YounesAH15) on 2026-12-01T09:05:38Z. --- ## 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 #4679 / #4707.)* ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2868, #4631, #4764
andrewpozdnakov7-jpg commented 2026-12-01 09:38:23 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T09:38:23Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7306991061 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4796#issuecomment-7306991061). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T09:38:23Z. --- 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.
YounesAH15 commented 2026-12-01 11:14:33 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by YounesAH15 on 2026-12-01T11:14:33Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7309367445 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4796#issuecomment-7309367445). Originally posted by [YounesAH15](https://github.com/YounesAH15) on 2026-12-01T11:14:33Z. --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/4796:upstream-pr/4796'
git switch 'upstream-pr/4796'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/4796'
git switch 'upstream-pr/4796'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/4796'
git switch 'upstream-pr/4796'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/4796'
git switch 'main'
git merge --squash 'upstream-pr/4796'
git switch 'main'
git merge --ff-only 'upstream-pr/4796'
git switch 'main'
git merge 'upstream-pr/4796'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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