XGameSave: a folder named like a version, such as v01, does not remov… #1006
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!1006
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1006/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?
@NATON4 on GitHub · 2026-11-24 14:55 UTC · original
hle/save-version-names→main· +44 −1 · 1 files · 1 commits · closed without merging…e the save
Recovery read every folder
v<digits>as a committed version, so av01,v001orv+1beside the committedv1also counted as version 1. One of the two was then "older" and removed by its rebuilt name,v1: the committed save itself. Reading the newest version's manifest then failed with NotFound, which reads as no save at all.A version's folder is now only
v<N>exactly ascommitnames it (no sign, no leading zeros). Other names are not versions: recovery neither counts nor removes them.The new test commits a save, adds
v01,v001andv+1folders, and checks that the save reads back, the strays are left alone and the next update goes on tov2.Closes #870.
@MichaelSmithAI on GitHub · 2026-11-24 15:03 UTC · original
Verified the canonical-name fix together with the older-save preservation follow-up on Wine 11.22. All nine XGameSave tests passed using temporary saves. Your test exercised a normal update from v1 to v2 with the stray directories still present.
The follow-up covers a separate recovery decision in
current(): parse the newest manifest before pruning older committed versions. With an invalid v2 manifest, the read still returned an error and the v1 blob remained intact. After restoring that manifest, the next read returned the v2 blob and cleaned up v1. The two changes compose with the regression test placed alongside this branch’s save tests.@Zipettte on GitHub · 2026-11-24 15:12 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
6a2c18e:cargo test -p victory-hlepasses, 96 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Pull request closed