Repository navigation
Conversation
…atform IInput slot 0x40 (RegisterReadingCallback) returned S_OK and a fabricated token while registering nothing and never calling reading callbacks; the platform refuses it (measured: E_NOTIMPL, token cleared), and a title that checks the HRESULT falls back to polling only when refused. Clear a non-null token and return E_NOTIMPL. Ported from fxceless/victory-fork PR #1465 (head 99f5bcff53ce32346b73cef2762da1882cb00592). Original author: CwWwWwW <66506837+CwWwWwW@users.noreply.github.com>.
Dukestar69
approved these changes
Nov 28, 2026
Dukestar69
left a comment
There was a problem hiding this comment.
Tested locally merged onto main (63b902f).
- Merge & Policy: Clean merge;
cargo xtask policypassed (294 files ok). - Tests:
cargo test -p victory-hle --lib gameinputpassed (27 passed; 0 failed; 1 ignored, including the newa_reading_callback_registration_is_refused_like_the_platform_doestest) with 0 compiler warnings.
Clean platform-parity fix for reading-callback registration. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
MystifiedSky
added a commit
to MystifiedSky/VIctory-NVIDIA-Improved
that referenced
this pull request
Nov 28, 2026
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.
Ported to trustno1-coder/VIctory-NVIDIA from the same change submitted to fxceless/victory-fork as PR #1465 (head 18c04f6, author CwWwWwW). The fork's own line was dropped when it rebased onto 959dcaf (5dbf5ce), so this is submitted here directly. The description below is the original one; its 'Verification' numbers refer to the fork tree. Rebased onto main 63b902f.
The problem
register_reading(IInputslot 0x40, RegisterReadingCallback) returned S_OK and a fabricated token while it never registers anything and the poll thread never calls reading callbacks (crates/victory-hle/src/modules/gameinput.rs:715-728).The platform refuses the registration. A title that checks the HRESULT (the normal pattern) falls back to polling when refused; the HLE told it success, so such a title can go event-driven and receive no input at all 鈥?silent total input loss. The current title polls and does not call slot 0x40, so it is unaffected.
Measured platform behaviour (offline, no game)
The host's
C:\Windows\System32\GameInput.dllwas called directly (Python ctypes;GameInputCreatereturned S_OK, thenIInputvtable slot 0x40):hr=0x80004001(E_NOTIMPL), the token was cleared from0xDEADBEEFDEADBEEFto 0;GameInputKindgamepad (0x40000): same;The change
Slot 0x40 clears a non-null token and returns E_NOTIMPL, exactly like the platform. Nothing else changes: reading callbacks are still not implemented, polling still drives the devices, and a caller that ignores the HRESULT sees an empty token (0) instead of a bogus one.
Evidence
New test
gameinput::tests::a_reading_callback_registration_is_refused_like_the_platform_does: old code returns S_OK and writes token 1; new code returns E_NOTIMPL and clears the token to 0.Verification (base
9a9091d):cargo test -p victory-hle --lib --locked -- --test-threads=1鈥?104 passed, 0 failedcargo clippy -p victory-hle --all-targets --locked -- -D warnings鈥?cleancargo clippy -p victory-hle --all-targets --locked --all-features -- -D warnings鈥?cleangit diff --checkclean; no new fmt diff (pre-existing crate fmt diffs only).Scope and overlap
One file,
crates/victory-hle/src/modules/gameinput.rs(+43/-4). No open PR covers it: #653 keeps the old shortcut unchanged, #534/#485 are registration ordering, #680 is xstore. CI'scheckmay be red from main's own clippy and asset-policy failures (#1440/#1322), which this diff does not touch.Verification on this tree (base 63b902f, 2026-11-27)