XGameSave: five fixes, built and tested on Windows (replaces #461) #470

Open
GiovanniFadanelli wants to merge 5 commits from upstream-pr/470 into main
GiovanniFadanelli commented 2026-11-27 14:22:41 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by GiovanniFadanelli on 2026-11-27T14:22:41Z.


Replaces #461 (zocram4cc). The same five commits, unchanged, with their original authors (EatCodeSleep2, quaternion, DocBlack89, Duff, towiice): validate a save's blob count before reading it, refuse a second change of one blob in an update, keep a quota excess across replacements, null the handle on a failed create, and abort the legacy container migration when a blob read fails.

Testing (Windows 11, RX 9070 XT, native MSVC 1.98.1; base 126acb35 vs this head)

  • cargo check (gpu, hle, loader, shader, victory, --all-targets): rc 0 at base and head.
  • victory-hle lib (--test-threads 1): 155 / 0 / 2 ign at base, 158 / 0 / 2 ign at head. The three new GDK tests run and pass (a_failed_create_leaves_a_null_handle, migration_aborts_without_deleting_old_when_a_blob_cannot_be_read, replacements_do_not_hide_an_existing_quota_excess).
  • Red first, run on the same five diffs in the megafork branch: each test fails with its fix reverted and passes with it. The blob-count and duplicate-blob fixes extend saves_persist_across_providers.
  • victory-gpu, loader, victory and shader are unchanged from base (the PR touches only xgamesave.rs).
  • clippy and the shader-suite crash on RDNA 4 are pre-existing on main (see #469).

Not verified in game. AI-assisted testing; the code is the original authors'.

🤖 Generated with Claude Code

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5528205055 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/470). Originally posted by [GiovanniFadanelli](https://github.com/GiovanniFadanelli) on 2026-11-27T14:22:41Z. --- Replaces #461 (zocram4cc). The same five commits, unchanged, with their original authors (EatCodeSleep2, quaternion, DocBlack89, Duff, towiice): validate a save's blob count before reading it, refuse a second change of one blob in an update, keep a quota excess across replacements, null the handle on a failed create, and abort the legacy container migration when a blob read fails. ### Testing (Windows 11, RX 9070 XT, native MSVC 1.98.1; base 126acb35 vs this head) - `cargo check` (gpu, hle, loader, shader, victory, `--all-targets`): rc 0 at base and head. - victory-hle lib (`--test-threads 1`): 155 / 0 / 2 ign at base, 158 / 0 / 2 ign at head. The three new GDK tests run and pass (`a_failed_create_leaves_a_null_handle`, `migration_aborts_without_deleting_old_when_a_blob_cannot_be_read`, `replacements_do_not_hide_an_existing_quota_excess`). - Red first, run on the same five diffs in the megafork branch: each test fails with its fix reverted and passes with it. The blob-count and duplicate-blob fixes extend `saves_persist_across_providers`. - victory-gpu, loader, victory and shader are unchanged from base (the PR touches only `xgamesave.rs`). - clippy and the shader-suite crash on RDNA 4 are pre-existing on main (see #469). Not verified in game. AI-assisted testing; the code is the original authors'. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
UwUCammie commented 2026-11-27 14:40:18 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T14:40:18Z.


I reproduced this on linux-wine-pr under Wine 11.22 using the temporary-container test. The original was removed on the old code. With your patch it was kept, no version was committed, and retrying after repair recovered both blobs. I’ve carried the same patch over in borntofrag34/VIctory-7900XTX#13.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7221076940 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/470#issuecomment-7221076940). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T14:40:18Z. --- I reproduced this on `linux-wine-pr` under Wine 11.22 using the temporary-container test. The original was removed on the old code. With your patch it was kept, no version was committed, and retrying after repair recovered both blobs. I’ve carried the same patch over in borntofrag34/VIctory-7900XTX#13.
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/470:upstream-pr/470'
git switch 'upstream-pr/470'

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