xgamesave: preserve older versions on manifest error #399
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!399
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/399/head"
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?
@lordon1a on GitHub · 2026-11-24 02:56 UTC · original
fix/xgamesave-preserve-older-version→main· +25 −3 · 1 files · 1 commits · closed without mergingAI-assisted.
Problem
In
victory_hle::modules::xgamesave::current, older committed save directories (v1, etc.) were deleted withremove_dir_allbefore reading and validating the newest version's manifest. If the latest version's manifest was missing, unreadable, or corrupt, the previous good save version had already been destroyed.Fix
modules::xgamesave::tests::unreadable_latest_manifest_preserves_previous_versionverifying that both a missing manifest and an empty/corrupt manifest preservev1, and thatv1is pruned oncev2's manifest is valid.Verification
cargo xtask policy:151 files okcargo test -p victory-hle xgamesave:6 passed; 0 failedcargo clippy -p victory-hle --all-targets: 0 warnings inxgamesave.rs@jeremygold02 on GitHub · 2026-11-24 04:29 UTC · original
Thanks @lordon1a for preserving the previous save version when the latest manifest cannot be read. I tested head
54f8cee58682bcdac13067542b07d1116fb8b66ewith:Result: 1 passed, 0 failed (86 filtered out). The test uses a synthetic save layout with an unreadable latest manifest and verifies the older version remains available. It does not exercise a title’s save workflow.
Pull request closed