Repository navigation
Conversation
XGameSaveSubmitUpdate wrote each blob with its own temp-and-rename, so a write that failed halfway left the container with some of the update applied. Stage every blob of the update under a ~xcltmp. name first, then rename the staged files into place in order; if a step fails, the steps already applied are rolled back. The write_atomic helper had no other caller and is removed. Fixes xcl-dev#324
…omponent A container name is percent-encoded into its folder name, which can exceed the 255-character limit of a path component, so creating the container failed. Shorten only the folders that cannot hold the name and keep the exact name in a side file that the container listing reads back. Names that fit are stored as before, so existing saves are unchanged. Stacked on the atomic save update (previous branch). Fixes ivall#326
milas6669
force-pushed
the
xgameruntime-long-container-names
branch
from
November 24, 2026 02:46
c1d0877 to
c75284c
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #621; only the top commit belongs here.
The percent-encoded container name became a folder name over 255 characters, so creating the container failed. Only folders that cannot hold the name are shortened; the exact name goes in a side file that the container listing reads back. Names that fit are stored as before.
Fixes #326. Not covered: the blob-name length limit.
What is in it
gamesave.rs:MAX_FOLDER_NAME,container_folder(), the name file inXGameSaveCreateContainer,each_container,delete_pathcontainer_folder_shortens_only_what_a_folder_cannot_holdandlong_container_names_save_and_come_back_exactTested
cargo test --workspace -- --test-threads=4: 649 passed, 0 failed, 21 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Regression run
scripts/smoke.ps1againstNot tested
scripts/smoke.ps1main vs PR headAI use