XStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot #475
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/475"
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 nathanbzrr on 2026-11-24T03:50:20Z.
Problem
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.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:05:58Z.
Review: APPROVED
Tested
2c22e2bon Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (265 passed, 0 failed).0x260 / 8 = 76, pastMethods<76>. A title callingXStoreShowProductPageUIResultread whatever followedVTABLE. Extending it to 77 fixes that.0x110(XStoreQueryConsumableBalanceRemainingResult) and0x120(XStoreReportConsumableFulfillmentResult) both take anXStoreConsumableResult*, whose first field is auint32_tquantity, socount_statusfits. The test checks that the out-value is left alone onNETWORK_ERROR.missing::<N>forstatuson the three UI result slots matches what their async halves already report.No issues found.
AI-assisted (Claude Code).