HLE: implement synchronous XGameSave slots and unfiltered blob enumeration #2137
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2139"
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 Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T05:52:27Z.
Problem
While
crates/victory-hle/src/modules/xgamesave.rsimplements the backing provider, container, blob, and atomic update operations for the async GDK entry points, six synchronous/enumeration vtable slots (0x18,0x38,0x50,0x78,0x90, and0xd8) remain wired tomissing::<N>.Changes
0x18(XGameSaveInitializeProvider): Validate and clearout, check save-root availability (NO_ACCESS), and open the provider synchronously viaProvider::open.0x38(XGameSaveGetRemainingQuota): Validateproviderandout(E_INVALIDARG) and writep.remaining() as i64.0x50(XGameSaveDeleteContainer): Validateprovider/nameand container naming (INVALID_CONTAINER_NAME) before callingdelete(&p.root, &name).0x78(XGameSaveEnumerateContainerInfoByName): Filter containers byprefix(treating null/empty as all containers and preserving early callback stop returningS_OK).0x90(XGameSaveEnumerateBlobInfo): Delegate unfiltered blob enumeration toenumerate_blobs.0xd8(XGameSaveSubmitUpdate): CommitUpdate::submitsynchronously.xgamesave::tests::blocking_calls_and_enumerations_persist_and_filter.Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T06:02:49Z.
Review: APPROVED
Verified locally merged onto
origin/main(940d32f, Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-hle --lib xgamesave::— 12 passed, 0 failedcargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— ok (183 files ok)Clean implementation of synchronous
XGameSaveslots and unfiltered blob enumeration with thorough unit test coverage. Looks good.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T06:33:03Z.
Review: COMMENTED
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
Synchronous XGameSave slots + unfiltered blob — save-system semantics; check the sync path's blocking behavior against titles that poll.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:51:41Z.
Automated triage for the maintainers.
Merge candidate. This fills the blocking XGameSave slots 0x18, 0x38, 0x50 and 0xd8 and the enumeration slots 0x78 and 0x90 in
xgamesave.rs. Each one reuses the logic of its async counterpart already in main:initializematchesinitialize_async.quotamatchesquota_async.delete_containermatchesdelete_async.submitmatchessubmit_async(Update::submit).containers_by_nameandall_blobsreusereportandenumerate_blobs.So the return values match what main already returns. The test covers persistence, quota, prefix filtering, early stop and invalid arguments. CI passes. One minor point: the test-only
saves_path()seam is used byinitializebut not byinitialize_async, so the two should use the same path lookup.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.