You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xgameruntime_user: the gamer picture, token and sign-out calls complete their async block with the same results - #8587
Complete offline gamer picture, token, MSA token and sign-out calls asynchronously, including their callbacks and result statuses. Sign-out is a no-op for the offline profile; existing handles continue to report SignedIn offline (known limit). Result and ResultSize calls reject successful unrelated blocks without consuming their payload. A completed zero-payload privilege resolution cannot be distinguished from sign-out by its result getter.
Why
These calls previously failed synchronously and never invoked the completion callback. Microsoft documents sign-out as platform-dependent; it does not require failure for an offline profile.
Tested
AI-assisted change. On p2, xgameruntime_user_test: negative control 8/96 checks failed before the fix; 0/96 failed after it. No GPU or driver was used.
Head 90556a9c5, merged locally with current main867d922f0 (clean merge). Built xgameruntime_user_test and gta6rt.
Test
PR (merged)
runtime/shims/xgameruntime_user.cpp reverted to main
xgameruntime_user_test.exe
exit 0, 0 of 79 checks failed
exit 1, 10 of 57 checks failed, e.g. FAIL offline async starts with S_OK, FAIL offline async invokes callback once
I checked the new slot signatures against the public GDK declarations, with the async block last: XUserGetGamerPictureAsync(user, size, async), XUserGetTokenAndSignature[Utf16]Async(user, options, method, url, headerCount, headers, bodySize, body, async), XUserGetMsaTokenSilentlyAsync(user, options, scope, async) and XUserSignOutAsync(user, async). All match, so the async block is read from the right argument.
Note: as the description says, XUserSignOutAsync completes with S_OK, but the handle still reports SignedIn afterwards. A title that waits for a state change after signing out won't see one. No issues found.
FYI: #8673 and #8422 also change xgameruntime_user.cpp.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Complete offline gamer picture, token, MSA token and sign-out calls asynchronously, including their callbacks and result statuses. Sign-out is a no-op for the offline profile; existing handles continue to report SignedIn offline (known limit). Result and ResultSize calls reject successful unrelated blocks without consuming their payload. A completed zero-payload privilege resolution cannot be distinguished from sign-out by its result getter.
Why
These calls previously failed synchronously and never invoked the completion callback. Microsoft documents sign-out as platform-dependent; it does not require failure for an offline profile.
Tested
@ItsNotRexed: an exe PR, as you asked.
Claim: #8344 (comment)