XStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot #475
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!475
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/475/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?
@nathanbzrr on GitHub · 2026-11-24 03:50 UTC · original
nathanbzrr:fix/xstore-missing-result-slots→main· +133 −5 · 1 files · 1 commits · merged 2026-11-25 00:11 UTCProblem
Several offline
XStore*Asyncvtable slots (0x118,0x188,0x1a8,0x258) complete theirXAsyncBlockwithNETWORK_ERROR, while their paired*Resultslots incrates/victory-hle/src/modules/xstore.rswere:VTABLE(Methods<76>, slots0..=75): callingXStoreShowProductPageUIResultat slot 76 (0x260) reads pastVTABLE.missing::<N>returningE_NOTIMPLinstead ofNETWORK_ERROR(0x120XStoreReportConsumableFulfillmentResult,0x190XStoreShowPurchaseUIResult,0x1b0XStoreShowRedeemTokenUIResult).status(2 args) at slot 34 (0x110,XStoreQueryConsumableBalanceRemainingResult) instead of 3-argcount_statustaking(This, *mut AsyncBlock, *mut u32).What changed
xstore::VTABLEincrates/victory-hle/src/modules/xstore.rsfromMethods<76>toMethods<77>.0x110,XStoreQueryConsumableBalanceRemainingResult) and slot 36 (0x120,XStoreReportConsumableFulfillmentResult) tocount_status.0x190,XStoreShowPurchaseUIResult), slot 54 (0x1b0,XStoreShowRedeemTokenUIResult), and slot 76 (0x260,XStoreShowProductPageUIResult) tostatus.offline_async_calls_report_network_error_from_their_result_slotsverifyingVTABLEbounds and0x258/0x260,0x118/0x120,0x188/0x190,0x1a8/0x1b0, and0x108/0x110.Tests (isolated branch
2c22e2b)rustfmt --edition 2024 --check crates/victory-hle/src/modules/xstore.rs: passed (exit 0).cargo test -p victory-hle --lib xstore: 2 passed, 0 failed, 85 filtered out (modules::xstore::tests::offline_async_calls_report_network_error_from_their_result_slots,modules::xstore::tests::the_game_is_licensed_and_the_store_is_offline).cargo clippy -p victory-hle --all-targets: passed (exit 0; 0 errors/warnings incrates/victory-hle/src/modules/xstore.rs).cargo xtask policy:asset policy: 151 files ok.No game files. AI-assisted; reviewed and verified with the tests above.