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

Open
github-bot wants to merge 1 commit from github-bot/gh-2314 into main AGit
Owner

@⁠Han-Wentao on GitHub · 2026-11-29 11:46 UTC · original
Han-Wentao:feat/f1-settings-profiles → main · +697 −12 · 5 files · 1 commits · open

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.

**@⁠Han-Wentao** on GitHub · 2026-11-29 11:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2314) `Han-Wentao:feat/f1-settings-profiles` → `main` · +697 −12 · 5 files · 1 commits · open ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:49:52 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/menu.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/2314/head:github-bot/gh-2314'
git switch 'github-bot/gh-2314'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2314'
git switch 'github-bot/gh-2314'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2314'
git switch 'github-bot/gh-2314'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2314'
git switch 'main'
git merge --squash 'github-bot/gh-2314'
git switch 'main'
git merge --ff-only 'github-bot/gh-2314'
git switch 'main'
git merge 'github-bot/gh-2314'
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!2314
No description provided.