XGameSave: decode %XX from bytes without slicing the str (#325) #514
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!514
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/514/head"
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?
@Grimkaaah on GitHub · 2026-11-24 01:08 UTC · original
Grimkaaah:fix/325-gamesave-dec-utf8→main· +31 −6 · 1 files · 1 commits · closed without mergingSummary
%XXescapes from bytes withis_ascii_hexdigit, never by slicing&strindices (#325).%+1(left literal).%a+é,%+1, andenc/decround-trip.Fixes #325
Test plan
cargo test -p xcl --lib hle::xgameruntime::gamesave::tests::dec_handles@H0UNDZER0 on GitHub · 2026-11-24 02:40 UTC · original
Tested on an RTX 5080, release build: pass, 678 passed, 0 failed. This adds the whole suite to the unit test in the description.
4a17a0ae898fd58ec06a2fe0179af690e032cfdc, this PR's head as is (on its base7ebf1b8), release build.XCL_*variables set.cargo build --release --workspace --locked: OK, the same singlefetch_updatewarning asmain.cargo test --workspace --release --no-fail-fast --locked -- --test-threads=4, run twice (the second with--show-output): 678 passed, 0 failed, 41 ignored both times. The base7ebf1b8gives 677 / 0 / 41 here: the difference is the newdec_handles_percent_before_non_ascii_and_rejects_signed_hex, which passes.SKIPPED: the usual 2,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).e2e), its save-storage check included, ends withfailures: 0.Not tested
main. At the time of the run that was9ce2070;git merge-treeshowed no conflict.scripts/smoke.ps1.AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2)
@MesshM on GitHub · 2026-11-24 05:24 UTC · original
Test run of
4a17a0ae898fd58ec06a2fe0179af690e032cfdcon AMD RDNA4. I merged it onto currentmaind208e14locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 705 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 664 passed, 0 failed, 21 ignoredSKIPPED; thegamesavedecoding tests pass.Review: Duplicate of #448 (open), and #325 has had other PRs too: all decode
%XXfrom bytes instead of slicing the&str. Only one should land.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@raylitebull on GitHub · 2026-11-24 10:44 UTC · original
Closing as a duplicate of #442 / #448 for #325, which pass the
PR descriptioncheck (whereas this PR failsPR description).Pull request closed