Repository navigation
Conversation
|
Careful data-preservation logic: v1 proves the legacy folder by full content equality (display + decoded names + payload bytes), later versions only supersede when every listed blob is readable - which is exactly the guarantee needed since updates legitimately delete blobs. Ambiguous cases get renamed to .legacy rather than silently dropped, and delete() refusing while a re-importable legacy folder remains prevents the resurrect-old-save trap. Note: version.dir.ends_with("v1") is a path-component check so only v1 matches (v11, v21 don't) - correct, just easy to misread. |
|
Independent WARP/CPU verification for head 7eefcfa against origin/main 13f91ca. State check: open, non-draft, clean merge-tree; no oni-swr comment found. Environment: Windows x64, Rust 1.98.1 (48a229cea 2026-09-01), Windows SDK dxil.dll 10.0.26100.0 (file version 1.8.2502.11); WARP/D3D12 WARP env vars set; CARGO_TARGET_DIR=D:\victory-warp-2720-target. Fixtures are synthetic temp files. Commands/results:
Review: no data-loss issue found in the matching, backup, or delete-blocking paths exercised here. Not tested: physical GPU, retail title/game behavior, release build. AI disclosure: Codex (gpt-6-luna). |
|
Independent Windows 11 verification and review of Verification (
|
|
Automated triage for the maintainers. Needs work. Thanks for working through all four points; backups now go into fresh numbered slots, CI: passing. Generated by Claude Code |
7eefcfa to
cdf2ec6
Compare
|
Addressed the four triage points in
Native Windows CI passed all 16 XGameSave tests, all 157 HLE unit tests, both HLE integration tests, and both strict Clippy runs. AI-assisted with Codex. |
Summary
On
main,migrate()treats an old-layout folder beside a committed save as the leftover from an interrupted migration and removes it. The two can legitimately differ. On Windows, a legacy blob opened without read or delete sharing can be skipped during migration. VIctory commits the other blobs to v1, then fails to remove the locked file. After the handle closes, the legacy folder still contains a blob that never made it into v1.A selected v1 clears the old folder only when the display metadata, decoded names, and payloads match. A later commit with readable listed blobs takes precedence, preserving its intentional deletions. An unreadable committed version that produces
InvalidDataalso takes the preservation path.Preserved data lives in numbered slots under
<container>/.legacy. VIctory does not read the backed-up files. Deleting the container removes its.legacydirectory along with the active save. Each move reserves a fresh slot, so existing backups stay intact and cannot block deletion. If a legacy folder is still in the provider root when the title deletes the container, deletion moves it into a fresh slot before retiring the whole container, preventing its re-import on the next open.This branch is based on current
main. A scratch merge with #2675 was clean and exercised that PR's missing-blob loader behavior. Coordination claimVerification
cargo test -p victory-hle --locked --target x86_64-pc-windows-gnullvm --no-run. Windows-target Clippy passed for all targets and features with-D warnings.cargo test -p victory-hle --locked --lib xgamesavepassed all 15 tests on this branch and all 17 on the scratch merge with HLE: retain unreadable legacy save display metadata (on #2525) #2675. The full Linux library run had 82 passes and two Windows-specific kernel failures that also reproduced on current main.cargo xtask policypassed for 191 files. The tests used synthetic saves. Gameplay and physical GPU behavior remain unverified.Native Windows CI passed the workspace test suite and both strict Clippy runs. This included all 16 XGameSave tests, 157 HLE unit tests, and both HLE integration tests. Windows CI
Written with AI assistance (Codex).