Repository navigation
xgameruntime: XSpeechSynthesizerEnumerateInstalledVoices takes (context, callback), as the retail executable calls it (RT-5) - #7262
Conversation
…xt, callback), as the retail executable calls it (RT-5) The retail executable's one call passes the context first and the callback second; the shim and its test read them the other way round. The executable never calls XHighContrastGetMode or XClosedCaptionSetEnabled, so the ASSUMPTION notes on them and on the argument order now say what was measured (static read, nothing run). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Independent check against the retail executable (own 1.0.2.1 copy, exe 120,181,760 bytes): the call shape is confirmed. |
|
Tested
Static inspection and synthetic tests only. No game code or GPU workload ran. AI-assisted verification. |
|
Tested 8fd5d8f (on
Not re-checked: the static read of the executable (sneylol's comment above covers the call shape), the docs tests and AI-assisted (Claude Code). |
|
Tested Windows build cross-compiled with clang-cl 23.1.5 + xwin (SDK 10.0.26100) on CachyOS (Linux 7.3.5), run under Wine 11.22 (
The slot counts in the description match a static AI-assisted (Claude Code). |
|
Checked AI-assisted. |
|
Tested |
Claimed in the coordination issue as: new RT-5 item, #7231 (comment)
Depends on: #7247 (it edits the lines next to this docs bullet in
docs/runtime_imports.md; neither builds on the other, so only the second to land needs a rebase, and the shim and the test do not conflict)What and why
Settles the two
ASSUMPTIONnotes of theXAccessibilityImplshim (#6810) with a static read of the retail 1.0.2.1 executable (nothing was run; call shapes and counts only, no addresses or bytes).XSpeechSynthesizerEnumerateInstalledVoices(slot 8): the title's only call passes the context first and the callback second; the callback takes(voice entry, context)and returns true to go on, and the result is only tested for success. The shim and its test read the first argument as the callback. Nothing changed in behaviour for that call site (both pointers are non-null and no voice is installed, so the callback never runs), but the shim'sE_INVALIDARGcheck looked at the wrong pointer.speech_enumerate_voicesnow takes(context, callback).XHighContrastGetMode(5) andXClosedCaptionSetEnabled(4): the executable never calls them. ItsXAccessibilityImplclass has 10 thunks, on slots 8-16 and 21 (9 referenced; 14 is not), none on slots 3-7. The notes now say so instead of marking the Off = 0 answer as an assumption.docs/runtime_imports.mdrecords what was measured and keepsASSUMPTIONonly for the parameter lists of the other speech calls (10-13, 15, 16, 21), which are still known by argument count only.tools/exe_checklist.pygoes from 15 to 13 notes.No new behaviour: one parameter order, comments, a test and a doc paragraph.
Tested
Windows 11, MSVC 14.44 RelWithDebInfo, RTX 3060, driver 617.14 (no GPU test is involved),
8fd5d8fcconmain8575d36ed:xgameruntime_offline_test: 44 checks, 0 failures. The reworked case calls slot 8 as(context, callback)(S_OK), with a null context (S_OK), and with a null callback (E_INVALIDARG).main'sxgameruntime_offline.cppfails (44 checks, 1 failure, theEnumerateInstalledVoicescase).tests/test_exe_checklist.py,test_docs_table_rows.py,test_docs_repo_paths.py,test_docs_repeated_lines.py,test_docs_design_rows.py: OK.tests/test_docs_links.pyandtests/test_docs_cli_flags.pyfail the same way onmain(docs/dev-tools.md), with and without this change.tools/gdk_runtime_calls.pyand a read of the one call site of slots 8 and 9, on my own 1.0.2.1 copy (SHA-256e95020b2…a08993).Not covered: the argument shapes of slots 10-13, 15, 16 and 21 (counts only), and what the title does with the voice list afterwards.
AI-assisted: yes. Claude Code (Claude Sonnet 5.5) wrote and ran this; the numbers above are its unedited output.
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code