Repository navigation
Conversation
SubmitUpdate stages every write to temp files first; only then renames into place and applies deletes, so a mid-update failure leaves the container untouched. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tested exact head Tested
Not tested
AI use
|
|
Tested on an RTX 5080, release build: pass, 677 passed, 0 failed.
Not tested
AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2) |
|
Test run of Tested
Review: Staging every write to a sibling temp and renaming only after all stages succeed makes a failed update leave the container as it was, which is what #324 asks for (the GDK's all-or-nothing). The renames themselves are still separate, so a failure between two renames can leave a partial update; that window is much smaller than before but not zero. Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
Summary
XGameSaveSubmitUpdate/applynow stages every write (display + blobs) to sibling temp files, and only renames them into place after all stages succeed.E_FAILwithout changing the container (GDK all-or-nothing).Oldand bloba = old, with no blobb.Fixes #324
Test plan
cargo test -p xcl --lib hle::xgameruntime::gamesave::(11 passed)