Add named F1 settings profiles with save, load and restore #2314

Open
Han-Wentao wants to merge 1 commit from upstream-pr/2314 into main
Han-Wentao commented 2026-11-29 11:46:19 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Han-Wentao on 2026-11-29T11:46:19Z.


Summary

  • Add a SETTINGS PROFILES (SAVE, LOAD, RESTORE) action to F1, with a separate profile picker and keyboard name editor.
  • Save current F1 values under a unique ASCII name. Loading and restoring both require a second Enter; loading keeps one recovery snapshot of the previous values.
  • Store profiles beside the selected settings file in <settings-file>.profiles. Only F1 keys are accepted, excluding the bindings action. Preserve unrelated settings and comments; do not save game data, binding files, caches, or launcher commands.
  • Stage writes beside their destination, reject malformed/oversized profiles and unsafe names, and update live settings only after persistence succeeds. Non-live settings explicitly require a restart.
  • Document the workflow and ignore local profile folders. No dependencies or lockfile changes.

Validation

  • 10/10 portable profile-store/name-editor tests passed, compiled directly from the new module with Rust 1.98.1 and the locked tempfile dependency. The module also passed standalone Clippy with -D warnings.
  • Added 3 Windows menu integration tests for confirmation/recovery, save/no-overwrite behavior, and failed-load state preservation. These are not claimed as executed.
  • git diff --check passed; the repository's staged asset-policy check passed for all 5 changed files using an isolated temporary index.
  • Attempted Windows-target checking from WSL: cargo +1.98.1 check --locked --offline --target x86_64-pc-windows-msvc -p victory-gpu --all-targets --all-features --features blake3/pure. The blake3/pure feature avoids the unavailable MSVC assembler for this cross-check; it is not a source or dependency change.
  • The check is blocked by the same 9 existing errors reproduced on an untouched checkout of base 829188e969: missing mb in copystat.rs, and the shadowed timing function/cascading errors in host.rs. No diagnostics point to the new code. Strict Clippy is also blocked by existing unused imports in victory-shader.
  • Full asset-policy checking fails on the unchanged base file crates/victory-loader/src/heap_sites/frame_users.rs (2022 hex digits). The changed-file check passes; this PR does not modify that file or relax policy.
  • No game/GPU smoke test performed. No game assets or SDK files included.

This is independent of the separate F1 page-navigation change.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550389792 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2314). Originally posted by [Han-Wentao](https://github.com/Han-Wentao) on 2026-11-29T11:46:19Z. --- ## Summary - Add a **SETTINGS PROFILES (SAVE, LOAD, RESTORE)** action to F1, with a separate profile picker and keyboard name editor. - Save current F1 values under a unique ASCII name. Loading and restoring both require a second Enter; loading keeps one recovery snapshot of the previous values. - Store profiles beside the selected settings file in `<settings-file>.profiles`. Only F1 keys are accepted, excluding the bindings action. Preserve unrelated settings and comments; do not save game data, binding files, caches, or launcher commands. - Stage writes beside their destination, reject malformed/oversized profiles and unsafe names, and update live settings only after persistence succeeds. Non-live settings explicitly require a restart. - Document the workflow and ignore local profile folders. No dependencies or lockfile changes. ## Validation - **10/10 portable profile-store/name-editor tests passed**, compiled directly from the new module with Rust 1.98.1 and the locked `tempfile` dependency. The module also passed standalone Clippy with `-D warnings`. - Added 3 Windows menu integration tests for confirmation/recovery, save/no-overwrite behavior, and failed-load state preservation. These are not claimed as executed. - `git diff --check` passed; the repository's staged asset-policy check passed for all 5 changed files using an isolated temporary index. - Attempted Windows-target checking from WSL: `cargo +1.98.1 check --locked --offline --target x86_64-pc-windows-msvc -p victory-gpu --all-targets --all-features --features blake3/pure`. The `blake3/pure` feature avoids the unavailable MSVC assembler for this cross-check; it is not a source or dependency change. - The check is blocked by the **same 9 existing errors reproduced on an untouched checkout of base 829188e969ffd2907e5867c5d9aca29bd91cb1b6**: missing `mb` in `copystat.rs`, and the shadowed `timing` function/cascading errors in `host.rs`. No diagnostics point to the new code. Strict Clippy is also blocked by existing unused imports in `victory-shader`. - Full asset-policy checking fails on the unchanged base file `crates/victory-loader/src/heap_sites/frame_users.rs` (2022 hex digits). The changed-file check passes; this PR does not modify that file or relax policy. - No game/GPU smoke test performed. No game assets or SDK files included. This is independent of the separate F1 page-navigation change.
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/2314:upstream-pr/2314'
git switch 'upstream-pr/2314'

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/2314'
git switch 'upstream-pr/2314'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2314'
git switch 'upstream-pr/2314'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2314'
git switch 'main'
git merge --squash 'upstream-pr/2314'
git switch 'main'
git merge --ff-only 'upstream-pr/2314'
git switch 'main'
git merge 'upstream-pr/2314'
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!2314
No description provided.