XGameSave: decode %XX in save file names without slicing the name (#325) #452
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/457"
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 raulmesa96 on 2026-11-24T00:32:18Z.
decingamesave.rssliced the save file name by byte index after a%; a name with a multi-byte character right after%xpanicked inside anextern "system"call and aborted the process. It now reads the two digits as bytes, and both must be hex digits (so%+1/%-1are no longer decoded). Names XCL writes itself (enc) decode as before.Fixes #325
What is in it
decreads the escape's digits as bytes –crates/xcl/src/hle/xgameruntime/gamesave.rsdec_keeps_percent_not_followed_by_two_hex_digits(panicked withend byte index 3 is not a char boundarybefore the fix) – same fileTested
x86_64-pc-windows-msvc, debugaebea99onmaina6f5f7a, clean treecargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4: 677 passed, 0 failed, 41 ignored (thexcllib: 637 passed, 0 failed, 21 ignored)gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)cargo test -p xcl --lib gamesave: 11 passed, 0 failedRegression run
scripts/smoke.ps1on. The change is limited todec(decoding save file names) and is covered by the unit tests and the full suite above; I would be grateful if someone with a title could add the twoxcl-smokeblocks.Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-24T10:44:06Z.
Closing as a duplicate of #442 / #448 for #325, which pass the
PR descriptioncheck (whereas this PR failsPR description).Pull request closed