Repository navigation
xgameruntime: serve XAccessibilityImpl offline through QueryApiImpl - #4235
evilclanker9000 wants to merge 3 commits into
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.
|
Independent check of
AI-assisted (Devin). |
Kam471
left a comment
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.
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.
|
Windows check of Environment: Windows 11, MSVC 19.44 (RelWithDebInfo, Ninja), CPU only. Synthetic API test, no game files, no GPU.
Re-check on the merged head; the earlier Linux check was on an older revision. AI-assisted (Devin). |
|
Tested
AI-assisted (Claude Code). No game files. |
|
Tested
AI-assisted (Gemini 4 Neon). |
|
Tested
Not run: other GPUs/vendors, Linux, the Vulkan validation layer (not installed). No game files. AI-assisted (Claude Code). |
Item: RT-280
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.)