HLE: preserve legacy saves when migration cannot finish #341
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!341
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-341"
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?
@avt0m4t48 on GitHub · 2026-11-24 23:38 UTC · original
avt0m4t48:fix/legacy-save-migration→main· +186 −27 · 1 files · 1 commits · openFixes #242.
Read every recognized legacy blob before publishing the converted version. Propagate directory-entry and blob read errors so migration can retry with the original data. Optional display metadata and unrelated filenames keep their existing handling.
Scan the provider before taking an update's current-version snapshot. A failed migration for that container or an incomplete provider listing blocks creation of a new first version. When access is restored, migration runs first and the update keeps any legacy blobs it does not replace.
Verification
2119b0e, real filesystem tests reproduced an unreadableHeaderbeing dropped and the legacy directory being removed. A read-loop-only patch still let an update publish a first version while migration was blocked.victory-loaderandvictory-hlewith pure BLAKE3. Native Windows execution and concurrent independent processes sharing a provider directory were outside this run.@avt0m4t48 on GitHub · 2026-11-25 14:43 UTC · original
Native Windows verification on
b4700bf8: all nine XGameSave module tests passed. An additional test opened a legacy header exclusively and confirmed that the normal read hit Windows error 32 (sharing violation). The baseline published a partial migrated save. The patched branch kept the original, returnedNO_ACCESSwhen an update tried to publish, and preserved the locked header alongside the new data on a retry after the handle closed.The new fixture uses a temporary provider with authored data. Concurrent providers in separate processes remain unverified.
Native Windows run with the baseline and patch
AI-assisted using Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.