Repository navigation
Conversation
QueryApiImpl now serves XAccessibilityImpl (IXAccessibilityImpl and 2, 19 methods in xgameruntime-docs' order): closed captions report off until the title sets them, high contrast is Off, speech-to-text calls are accepted and dropped with hypothesis ids tracked, and the speech synthesizer has no installed voice (handles work, stream creation is not supported). xgameruntime_accessibility_test calls every slot. AI-assisted.
This was referenced Nov 23, 2026
Contributor
|
Independent check of
AI-assisted (Devin). |
Kam471
reviewed
Nov 23, 2026
Kam471
left a comment
Contributor
There was a problem hiding this comment.
Built xgameruntime_accessibility_test at 07070dab on Windows 11 and ran it: 45 checks, 0 failures, exit 0; ctest -R xgameruntime_accessibility -> 1/1 passed (0.01 s).
The shim answers the XAccessibilityImpl QueryApiImpl surface offline: the speech synthesizer create/set-voice/close paths, the "not supported" stream-creation results that clear the handle, null-handle and double-close E_INVALIDARGs, and the closed-synthesizer case all match the checks. No blocking issue.
2 tasks done
This was referenced Nov 23, 2026
Conflicts: docs/runtime_imports.md, runtime/CMakeLists.txt, runtime/shims/xgameruntime.cpp, scripts/build_runtime.ps1 AI-assisted.
Conflicts: docs/runtime_imports.md AI-assisted.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-RT-ACCESSIBILITY, #4084 (comment)
What and why
QueryApiImplrefusedXAccessibilityImpl(class3e241977-6237-41e9-8559-102c2d9983f1), so a title's firstXClosedCaptionGetProperties,XHighContrastGetModeorXSpeechToText*call failed withERROR_NOT_SUPPORTED. It now serves the class andIXAccessibilityImpl2offline, inruntime/shims/xgameruntime_accessibility.cpp, hooked in with one line inQueryApiImpl. The 19 slots follow xgameruntime-docs' layout; signatures follow the public GDK reference. No package DLL calls any of them, so the slots are not measured against a caller (docs/runtime_imports.md says so).A PC with no console accessibility settings answers like a console with everything off:
XClosedCaptionSetEnabled, which the nextXClosedCaptionGetPropertiesreports;Off;Beginhands out an id thatUpdate/Finalize/Cancelcheck;HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED).XColor's byte layout is not in the pages read; only the font colour (all0xFF, the same in any channel order) is filled in.Touches
runtime/shims/xgameruntime.cpp(6 lines) and the source lists inruntime/CMakeLists.txtandscripts/build_runtime.ps1. #3657 does the same forXGameUiImplin its own file; the two should merge with a trivial conflict at theQueryApiImplloop.Tested
Windows 11, MSVC 2022 Build Tools, RelWithDebInfo. No GPU involved.
xgameruntime_accessibility_test(new, registered as ctestxgameruntime_accessibility): 45 checks, 0 failures. It calls every slot throughQueryApiImplthe way the thunks do, and checks the ids against the text the docs print.xgameruntime_test: OK (106 checks);gta6rtbuilds.*mode = kHighContrastOffto*mode = 1makesXHighContrastGetMode reports Off (0)fail (45 checks, 1 failure); reverted.tests/test_build_runtime_batch.py,test_build_runtime_fallback.py,test_ctest_registration.py,test_cmake_vulkan_missing.py: OK.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (No translator change.)