HLE: implement blocking and prefix-enumeration XGameSave vtable slots #884
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!884
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-884"
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?
@sagouindupm on GitHub · 2026-11-25 11:45 UTC · original
sagouindupm:xgamesave-sync-and-enum→main· +315 −42 · 1 files · 2 commits · openImplements the remaining six
missing::<...>slots incrates/victory-hle/src/modules/xgamesave.rsmatching the Microsoft GDKXGameSaveAPI signatures:0x18XGameSaveInitializeProvider(blocking)open_at(shared withinitialize_async)0x38XGameSaveGetRemainingQuota(blocking)remaining_quota(shared withquota_async)0x50XGameSaveDeleteContainer(blocking)remove_container(shared withdelete_async)0x78XGameSaveEnumerateContainerInfoByNamereport, shared withenumerate_containers(0x70)0x90XGameSaveEnumerateBlobInfoenumerate_blobs(0x98) withnullprefix0xd8XGameSaveSubmitUpdate(blocking)Update::submitVerification
Run on Windows 11 Pro (x86_64-pc-windows-msvc, Rust 1.98.1):
cargo test --release -j 2 -p victory-hle-> 99 passed; 0 failed (lib) + 1 passed; 0 failed (no_dll_planting), including newmodules::xgamesave::tests::blocking_and_prefix_methods_workcovering all six vtable offsets (0x18,0x38,0x50,0x78,0x90,0xd8), null/invalid arguments (E_INVALIDARG,INVALID_CONTAINER_NAME,NO_ACCESS), prefix filtering, blob enumeration, blocking submit, quota tracking, and deletion.cargo clippy -j 2 -p victory-hle --all-targets --no-deps -- -D warnings-> 0 warnings, exit 0 (uses--no-depsbecause workspace dependencyvictory-gpuonf85101bhas two pre-existing lints noted in #855).cargo run -j 2 -p xtask -- policy->asset policy: 175 files ok.Note: Tested via synthetic unit tests in
victory-hle; the new unit test validates all six slots end-to-end without requiring game files.AI-assisted: code, tests, and PR description were written with AI assistance.
@avt0m4t48 on GitHub · 2026-11-25 13:36 UTC · original
I found one missing failure output in the blocking provider initializer on
de1f1f0. The GDK declares its provider parameter_Outptr_result_nullonfailure_. This implementation returns the error fromopen_at()and leaves the caller's old output value in place. Microsoft API contractI reproduced it through slot
0x18on Windows with a synthetic storage root. Opening a valid root returns a provider. With an ordinary file blocking the next provider's path, the next call returnsNO_ACCESSand leaves that earlier provider value in the output. Clearingoutwithput(out, std::ptr::null_mut())in theErr(hr)arm passed the new failure test and the existing blocking/prefix test. Synthetic probe · Windows runAI-assisted using Codex.
@sagouindupm on GitHub · 2026-11-25 15:30 UTC · original
Good catch @avt0m4t48! Fixed in
94061d07(clearouttonull_mut()on failure ininitialize_atper_Outptr_result_nullonfailure_, plus regression test inblocking_and_prefix_methods_work).Verified on Windows (
cargo test --release -p victory-hle,clippy -D warnings,xtask policy).AI-assisted: Gemini / Claude.
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.