XGameRuntime: report save-container deletion failures #2797
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2807"
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?
Imported from ivall/xcl. Originally posted by CryingLaughing on 2026-11-26T14:05:43Z.
XGameSave returned success when the host filesystem failed to delete a container. The synchronous call and asynchronous result now return the filesystem error. Deleting a container that is already absent still succeeds.
What is in it
crates/xcl/src/hle/xgameruntime/gamesave.rs, propagate errors fromremove_dir_allthrough both deletion paths under the save-mutation lock.Tested
f0ec300d6005eb174b8c6832db08472aead8b78donb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. Its tree74eb4cd6fd5320831d0eb9261fb1aa0b3df53818matches the tested overlay. Windows 11 25H2 build 26200.9974, Intel Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, and DXC 1.8.2502.11. Debug build and test profiles.delete_container_reports_sharing_failure_and_can_retrytest failed on the parent (0 passed, 1 failed) because both deletion paths reported0x00000000. On the fixed tree it passed 1/1 with0x80070020(ERROR_SHARING_VIOLATION) in both paths, intact blob bytes, successful retry after closing the handle, and successful deletion of an already-absent container.cargo build --workspace --locked -j 4passed.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 1,436 passed, 0 failed, 47 ignored, with 29 explicit skip messages in the pass count across 37 harnesses.Regression run
Independent retail smoke by Anon64 compared release builds of main and this exact head on an RTX 3060 12 GB (driver 581.80), Core i9-14900KF, and Windows 11 build 26200. The 60-second runs used the same title. The head retained 101.1% of the baseline frames and used 104.0% of its peak commit, with zero crashes or device removals. The run did not establish whether the title reached the changed code.
main:
PR:
Not tested
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-26T14:44:10Z.
Regression run of
f0ec300on a newer retail title: no device removal, no crash, frames and commit within the limits.Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main
b49be18(this PR's base) and of this PR's exact head,scripts/smoke.ps1 -Game <title>for 60 s withXCL_NETWORK=0and A pressed every 4 s from 20 s. Main ran before and after a batch of 11 PRs and peaked at 23,855 and 23,844 MB, so the baseline held steady over the batch.main:
this PR:
101 % of main's frames, 103 % of its peak commit. One run each.
Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD.
AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report.
Pull request closed