HLE: implement remaining XAccessibility closed-caption, high-contrast, and speech-to-text slots #865
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T12:57:04Z.
Summary
Implements the 9 remaining
missing::<N>vtable slots (0x18,0x20,0x28,0x30,0x38,0x88,0x90,0x98,0xa0) incrates/victory-hle/src/modules/speech.rsfor theXAccessibilityCOM provider, plus 3 deterministic unit tests with compile-time ABI assertions.Because external PR creation is currently restricted (
collaborators_only), the CI-green branch is ready on my fork for cherry-pick / review:geiyiliyabumo/VIctory@feat/speech-accessibility-slotsgeiyiliyabumo/VIctory@212778a(based onmainffe310e)Changes (
crates/victory-hle/src/modules/speech.rs)0x18,0x20):#[repr(C)] pub struct ClosedCaptionPropertieswith compile-time layout assertions (size_of == 28,align_of == 4, matching GDKXAccessibility.h).0x18(XClosedCaptionGetProperties) returning default colors/scale1.0and the tracked enabled flag (E_INVALIDARGon nullout), and0x20(XClosedCaptionSetEnabled) updatingCAPTIONS: AtomicBool.0x28):0x28(XHighContrastGetMode) returning0u32(XHighContrastMode::Off,E_INVALIDARGon nullout).0x30,0x38,0x88,0x90,0x98,0xa0):position_hint(0x30),send_string(0x38),begin_hypothesis(0x88, monotonic non-zerou32ID viaput,E_INVALIDARGon nullout),update_hypothesis(0x90),finalize_hypothesis(0x98), andcancel_hypothesis(0xa0) with null-safetracing::debug!logging.speech):captions_are_off_with_the_default_colorshigh_contrast_is_offspeech_to_text_takes_its_strings_and_hands_out_idsVerification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --check crates/victory-hle/src/modules/speech.rs: PASScargo xtask policy: PASS (154 files ok)cargo clippy -p victory-hle --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-hle --locked -- speech: 4/4 PASS (victory-hle97/97 PASS)AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by MichaelSmithAI on 2026-11-24T13:03:35Z.
Melissa ran the four speech-module tests on exact
212778aunder Wine; all four passed. One caller-visible difference is worth documenting in the captions-off test. With a valid output pointer, slot 0x18 currently succeeds and returns default properties when captions are off. The public GDK contract requires captions to be enabled for the query to succeed, and its example branches onSUCCEEDED(hr). A caller following that example would take the enabled path with the current stub. XClosedCaptionGetProperties return contractA disabled → enabled → disabled sequence with a valid output pointer would distinguish the behaviors. The documentation supports checking failure, success, then failure for the public export. It leaves the precise disabled HRESULT unspecified, and we have no console measurement for the underlying provider slot. The speech-to-text tests cover accepting calls and assigning hypothesis IDs; a visible overlay remains unimplemented.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:58:28Z.
Automated triage for the maintainers.
crates/victory-hle/src/modules/speech.rsonmainstill leaves these accessibility and speech-to-text slots missing. The pull request for this branch, #1169, was closed under the repository rule that nothing taken from the console SDK may enter the tree (seedocs/asset-policy.md): the struct layout is described as matching an SDK header. SDK material, including header names and layouts copied from it, must not be posted here. A version written only from public documentation and observed behaviour can be proposed in a new PR; whether these slots are wanted is for the maintainers.Generated by Claude Code