feat(xgameruntime): add the XGameInvite, XAccessibility and XSpeechSynthesizer HLE #45
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!45
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-45"
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?
@wildheathen on GitHub · 2026-11-21 20:34 UTC · original
wildheathen:feat/invite-accessibility-speech→main· +652 −0 · 8 files · 3 commits · openSummary
Adds three small GDK families to
xgameruntimeas offline, deterministic HLE, one commit per family. They have no overlap with the open XUser / XGameSave / XMem work, and each one lives in its own files.XGameInviteRegisterForEvent,XGameInviteUnregisterForEvent): no invite can arrive, so registering returns a valid task-queue token, the callback never fires, and unregistering accepts the token exactly once. Both functions are marked deprecated on their public pages ("Use XGameActivationRegisterForEvent instead");XGameActivationis not part of this PR.XClosedCaptionSetEnabled,XHighContrastGetMode(alwaysOff: there is no display setting here),XSpeechToTextSendString,XSpeechToTextSetPositionHint(the eight positions are validated), and the hypothesis cycleBegin/Update/Finalize/Cancel. An unknown or expiredhypothesisIdis not an error, as the pages document ("Passing an invalid hypothesisId value does not return an error").XClosedCaptionGetPropertiesis left out:XClosedCaptionPropertiescontainsXColor, which has no public page, so its layout cannot be reproduced without guessing.XSpeechSynthesizerGetStreamDatawith an invalid stream handle returnsHRESULT_FROM_WIN32(ERROR_NOT_FOUND), as documented.XSpeechSynthesizerVoiceInformationstays an incomplete type: it is only ever received by the callback and its fields are not public. Closing a handle that does not carry our magic is refused instead of freed.Signatures, enum values and documented return codes come from the public reference pages on learn.microsoft.com (
gdk-2610view); I re-read the three enums (XHighContrastMode,XSpeechToTextType,XSpeechToTextPositionHint) and the function pages against the header before opening this (all of them except theXSpeechSynthesizerCloseStreamHandlepage).Choices the public pages do not cover
These are ours, marked as such in the code comments:
E_INVALIDARGforXSpeechSynthesizerSetCustomVoicewith an unknown voice id (none is ever enumerable),E_INVALIDARGforGetStreamDatawith a null buffer and a non-zero size, andE_POINTERforXHighContrastGetMode(nullptr).Layout
src/shims/xgr_invite.cpp,xgr_accessibility.cpp,xgr_speech.cpp(registered inCMakeLists.txt) and one test per family:test_xgameinvite,test_xaccessibility,test_xspeechsynthesizer. The header gets three new sections placed before theXMem.hsection. Nothing inxgameruntime_shim.cpportest_xgameruntime_abi.cppchanges. The three commits are independent, so they can be taken separately.Verification
23/26, where the three failures (test_boot_hello_scarlett,test_boot_rt_showcase,test_d3d12_guest_texture) are the ones that already fail on an unmodifiedorigin/main(see #1 and #2).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.