Preserve local settings when importing a save with lowercase container names #4639

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

@⁠ItzTHEK on GitHub · 2026-12-01 00:25 UTC · original
ItzTHEK:fix/preserve-save-settings-case → main · +19 −1 · 1 files · 1 commits · open

Refs #2621

What it changes

Importing a ZIP with a lowercase settingsprofilesettings container could overwrite the player's local settings. Windows resolves that spelling to the same directory as SettingsProfileSettings, but the save filter compared the prefix case-sensitively. Match the ASCII prefix case-insensitively wherever the save layer identifies settings containers.

How it was tested

  • Windows, synthetic save data in temporary directories. The test exercises the same staging and apply functions used by the F1 import. GPU, console profile and shader wave size do not affect this path.
  • Before: the imported progress was present, but the settings assertion read imported settings where it expected player settings.
  • After: the same archive imports its progress and preserves the player's original settings bytes.
  • cargo test --locked --all-features -p victory-gpu --lib save_share::tests — 10 passed.
  • cargo test --locked -p victory-gpu — 1,134 passed, 0 failed, 66 ignored on the rebased branch (base 7d93ee07).

Checked for overlap

  • Searched open PRs for the issue, the settings container and the changed file. #3687 touches the module for non-Windows builds and #3617 localizes its messages. This patch addresses the save settings filter.
**@⁠ItzTHEK** on GitHub · 2026-12-01 00:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4638) `ItzTHEK:fix/preserve-save-settings-case` → `main` · +19 −1 · 1 files · 1 commits · open Refs #2621 ## What it changes Importing a ZIP with a lowercase `settingsprofilesettings` container could overwrite the player's local settings. Windows resolves that spelling to the same directory as `SettingsProfileSettings`, but the save filter compared the prefix case-sensitively. Match the ASCII prefix case-insensitively wherever the save layer identifies settings containers. ## How it was tested - Windows, synthetic save data in temporary directories. The test exercises the same staging and apply functions used by the F1 import. GPU, console profile and shader wave size do not affect this path. - Before: the imported progress was present, but the settings assertion read `imported settings` where it expected `player settings`. - After: the same archive imports its progress and preserves the player's original settings bytes. - `cargo test --locked --all-features -p victory-gpu --lib save_share::tests` — 10 passed. - `cargo test --locked -p victory-gpu` — 1,134 passed, 0 failed, 66 ignored on the rebased branch (base `7d93ee07`). ## Checked for overlap - [x] Searched open PRs for the issue, the settings container and the changed file. #3687 touches the module for non-Windows builds and #3617 localizes its messages. This patch addresses the save settings filter.
Windows resolves both spellings to the same directory. Ignore the settings prefix irrespective of ASCII case when filtering and preserving save containers.

On Windows the regression first read imported settings instead of player settings. With the fix all 10 save_share tests passed, including replacement of progress and preservation of settings through stage and apply.

Refs #2621
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:29:15 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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