Warn on saved F1 menu CLI overrides and add --ignore-menu / --reset-settings #4796
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4796"
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 YounesAH15 on 2026-12-01T09:05:38Z.
What it changes
Saved F1 menu settings in
%LOCALAPPDATA%\victory\victory-settings.txtsilently override CLI flags passed tovictory play(such as--series-s,--dlss,--fg-type,--framegen,--fps). This adds:menu_override_warnings) listing any CLI options overridden byvictory-settings.txtand pointing to--ignore-menu/--reset-settings.--ignore-menuto skipvictory-settings.txtfor a single run (also preserved inrestart_args).--reset-settingsto deletevictory-settings.txtbefore starting.How it was tested
--ignore-menuin game onmy-play).victory-settings.txtsilently forced--fps 1000/ Series X over CLI flags without any console notice.--ignore-menuskips the saved file cleanly without deleting it.cargo testpassed for the crates it touches: yes — rebased ontoorigin/main5fabb46eat commit9eee54f9:cargo test -p victory --locked: 95 passed, 0 failed (92 unit includingmenu_override_warnings_detects_overridden_cli_options, 1cache_paths, 2census).cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings: passed cleanly (0 errors, 0 warnings). (Note: fullcargo clippy -p victory --all-targets --locked -- -D warningsfails identically onorigin/main5fabb46edue to 5 pre-existing findings incrates/victory-gpu/src/host/{font.rs, menu.rs, panel.rs}, addressed in #4679 / #4707.)Checked for overlap
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 4with a saved legacyVICTORY_MENU_FRAMEGEN=1still launches at 4×. The notice reports4x -> 2x.VICTORY_MENU_S_RES=360saved 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 2passed. 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.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) ontoux/cli-override-guardat63ab53db, retaining your Git authorship.Verified on
63ab53db:cargo test -p victory --locked: 95 passed, 0 failed (92unit including updatedmenu_override_warnings_detects_overridden_cli_options,1cache_paths,2census).cargo clippy -p victory --no-deps --all-targets --locked -- -D warnings: passed with 0 warnings/errors.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.