XGameUi: handle the Xbox Live and account dialogs explicitly, completing with E_NOTIMPL #2779
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2779
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2779"
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?
@timesecay on GitHub · 2026-11-26 12:15 UTC · original
timesecay:xgameui-refuse-dialogs→main· +178 −6 · 1 files · 1 commits · openXGameUi: handle the Xbox Live and account dialogs explicitly, completing with E_NOTIMPL
Seven XGameUi dialog types that need Xbox Live or an account (player picker, profile card, send
game invite, state share, multiplayer activity invite, achievements, web authentication; 17
entry points in all) were unknown slots on XCL's XGameUi class. They are now handled
explicitly: each
*Asynccompletes itsXAsyncBlockat once withE_NOTIMPL, and each*Resultreturns that status.What is in it
crates/xcl/src/hle/xgameruntime/api.rs:ui_refused,ui_refused_fns!andxgameui_refused()register the 17 functions on the XGameUi class (built on the existing
begin_withandempty_resulthelpers). The class'simplswas empty before.api.rsheader comment: says which XGameUi dialogs XCL refuses and which still go to the PC runtime.api.rstests: the newrefused_xgameui_dialogs_complete_with_e_notimpl_and_leave_outputs_alone,and the old
E_NOTIMPL+unimplementedassertion inthunk_protocol_with_xcl_objects_on_pc_queuesrewritten for the new behaviour.
HANDOFF.md(~L1029): its "not implemented in XCL classes" counts are now stale for thesefunctions. Left unedited, as the repository rules ask.
The 17 functions
Async entry points (8):
XGameUiShowAchievementsAsync,XGameUiShowPlayerPickerAsync,XGameUiShowPlayerProfileCardAsync,XGameUiShowSendGameInviteAsync,XGameUiShowStateShareAsync,XGameUiShowMultiplayerActivityGameInviteAsync,XGameUiShowWebAuthenticationAsync,XGameUiShowWebAuthenticationWithOptionsAsyncResult / status entry points (9):
XGameUiShowAchievementsResult,XGameUiShowPlayerPickerResultCount,XGameUiShowPlayerPickerResult,XGameUiShowPlayerProfileCardResult,XGameUiShowSendGameInviteResult,XGameUiShowStateShareResult,XGameUiShowMultiplayerActivityGameInviteResult,XGameUiShowWebAuthenticationResultSize,XGameUiShowWebAuthenticationResultBehaviour
*AsyncreturnsS_OK, completes the block withE_NOTIMPLand delivers the completioncallback once. It logs
XGameRuntime: <name> - no UI offline (completes with E_NOTIMPL).*Resultreturns the call's status (E_NOTIMPL) and does not write its outputarguments (counts, sizes, player ids, result pointer, buffer).
XAsyncBlock*; every GDK signature for thesefunctions has it first. The slot shims pass the remaining arguments through, which relies on
the Win64 caller cleaning up its stack, as
@'
XGameUi: handle the Xbox Live and account dialogs explicitly, completing with E_NOTIMPL
Seven XGameUi dialog types that need Xbox Live or an account (player picker, profile card, send
game invite, state share, multiplayer activity invite, achievements, web authentication; 17
entry points in all) were unknown slots on XCL's XGameUi class. They are now handled
explicitly: each
*Asynccompletes itsXAsyncBlockat once withE_NOTIMPL, and each*Resultreturns that status.What is in it
crates/xcl/src/hle/xgameruntime/api.rs:ui_refused,ui_refused_fns!andxgameui_refused()register the 17 functions on the XGameUi class (built on the existing
begin_withandempty_resulthelpers). The class'simplswas empty before.api.rsheader comment: says which XGameUi dialogs XCL refuses and which still go to the PC runtime.api.rstests: the newrefused_xgameui_dialogs_complete_with_e_notimpl_and_leave_outputs_alone,and the old
E_NOTIMPL+unimplementedassertion inthunk_protocol_with_xcl_objects_on_pc_queuesrewritten for the new behaviour.
HANDOFF.md(~L1029): its "not implemented in XCL classes" counts are now stale for thesefunctions. Left unedited, as the repository rules ask.
The 17 functions
Async entry points (8):
XGameUiShowAchievementsAsync,XGameUiShowPlayerPickerAsync,XGameUiShowPlayerProfileCardAsync,XGameUiShowSendGameInviteAsync,XGameUiShowStateShareAsync,XGameUiShowMultiplayerActivityGameInviteAsync,XGameUiShowWebAuthenticationAsync,XGameUiShowWebAuthenticationWithOptionsAsyncResult / status entry points (9):
XGameUiShowAchievementsResult,XGameUiShowPlayerPickerResultCount,XGameUiShowPlayerPickerResult,XGameUiShowPlayerProfileCardResult,XGameUiShowSendGameInviteResult,XGameUiShowStateShareResult,XGameUiShowMultiplayerActivityGameInviteResult,XGameUiShowWebAuthenticationResultSize,XGameUiShowWebAuthenticationResultBehaviour
*AsyncreturnsS_OK, completes the block withE_NOTIMPLand delivers the completioncallback once. It logs
XGameRuntime: <name> - no UI offline (completes with E_NOTIMPL).*Resultreturns the call's status (E_NOTIMPL) and does not write its outputarguments (counts, sizes, player ids, result pointer, buffer).
XAsyncBlock*; every GDK signature for thesefunctions has it first. The slot shims pass the remaining arguments through, which relies on
the Win64 caller cleaning up its stack, as the existing
completed()handlers do. That is anassumption about the existing dispatch machinery; no test isolates it.
Side effect on
report.jsonThese calls are no longer counted under
xgameruntime.unimplemented, because they are no longerunknown slots. Anyone using that list to find gaps will stop seeing them; the log line above is
the replacement.
Tested
stable-x86_64-pc-windows-msvc, rustc 1.100.0 (0ef1bc386 2026-11-09). Debug build for tests,
release build for smoke. The machine was not idle during the runs (browsers, capture and
chat apps were open).
b49be18368plus one commit,58eb182e73.cargo test --workspace -j 1 --no-fail-fast -- --test-threads=1: cargo exit 0;1,436 passed, 0 failed, 47 ignored (37 test binaries). The log has 45
SKIPPEDlines;those tests pass without running and are not coverage.
thunk_protocol_with_xcl_objects_on_pc_queues(existing, edited) covers 3:XGameUiShowAchievementsAsync,XGameUiShowAchievementsResultandXGameUiShowWebAuthenticationWithOptionsAsync. It runs on the PC runtime's queues.refused_xgameui_dialogs_complete_with_e_notimpl_and_leave_outputs_alone(new) covers all 17through their vtable slots on XCL's own queues. It checks
S_OKfrom each Async, onecompletion callback per call,
XAsyncGetStatus=E_NOTIMPL, every Result =E_NOTIMPL,untouched output buffers,
E_INVALIDARGfor a never-started block and for a null block.S_OK, and a missingWithOptionsregistration,each made the new test fail; both were reverted.
errors_propagate_and_release_active_state, not by the new test.Regression run
Same game folder, 60 seconds, same title for both.
mainfirst:This change:
Not tested
E_NOTIMPL(it may treat it as fatal rather than as a dismissed dialog).XGameUiSet*UIResponseandXGameUISetUICallbacks(not in thegenerated GDK table),
XGameProtocol*.gh pr list --state all --search "XGameUi"(5 results) and"E_NOTIMPL"(29 results, first 20 listed). I checked #2623, #1610, #12, #24, #270 and #1537: none registers
handlers for these XGameUi functions. #24 (merged) added the test assertion this PR changes.
#2623, #1610, #270 and #1537 edit
api.rsand may need a rebase.AI use
Claude Code, model: not recorded. It wrote the handlers, the tests and a draft of this description, read the
function signatures from the public GDK reference, and ran the build and test commands. timesecay
reviewed the diff and is the author.
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.