Four offline GDK shim gaps from kevincommits' finding on #1608:
- XStoreShowGiftingUIAsync (store slot 82) is offline_failure_async<82, 5>
like the other offline *Async slots, so a caller waiting on its block gets
an answer. The block is the 5th argument (storeContextHandle, storeId,
name, extendedJsonData, async), as in microsoft/XBOX-GDK-dotnet.
- XSpeechSynthesizerGetStreamData forwards a host stream
(LEONIDA_LOCAL_SPEECH=1) also when `used` is null; it is _Out_opt_. The
host provider is made once into a namespace-scope atomic instead of a
block-scope static on a title thread (the Wine guard issue this file
already avoids elsewhere). A test hook sets a fake host.
- XPackageMountWithUiAsync completes with E_ACCESSDENIED for the game's
own package, as XPackageMount refuses it, instead of
E_GAMEPACKAGE_NO_PACKAGE_IDENTIFIER. A block used again before its result
was read closes the earlier mount's handle; if the new run does not
start, the earlier mount keeps its place.
- XGameGetXboxTitleId skips a <TitleId> inside an XML comment, as
package_locales already does (the comment stripping is now shared).
New checks in xgameruntime_test, xgameruntime_store_test and
xgameruntime_offline_test: 5 fail with main's logic, all pass with the fix.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The offline XStore table returned E_FAIL synchronously without ever starting the caller's XAsyncBlock, so a title that waits on the block (XAsyncGetStatus wait=true) or on its completion callback hung forever. Each *Async slot now locates its block by argument position and runs it through XAsyncRun, failing with E_FAIL; the Result partners keep returning E_FAIL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A GDK title checks its license at boot. QueryApiImpl now serves XStoreImpl
(IXStoreImpl..6, 84 slots from xgameruntime-docs' layout; signatures from
the public GDK reference): the game license is active and not a trial,
package licenses are acquirable and valid, no add-ons, no products, no
package updates; license-changed/lost registrations hand out tokens and
never fire. Purchases, consumables, tokens, downloads and store UIs fail
before starting (E_FAIL, logged once); the undocumented slots answer
E_NOTIMPL.
UNVERIFIED: STORE_SKU_ID_SIZE 18, SKU_ID_SIZE 5, TRIAL_UNIQUE_ID_MAX_SIZE
64 (XStoreGameLicense 104 bytes) - the public pages give no values; to be
confirmed against the executable before a boot relies on them.
xgameruntime_store_test: 22 checks. ctest 161/161.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>