Repository navigation
HLE GameInput supports IUnknown queries - #1329
BaggyALPHA wants to merge 1 commit into
Conversation
|
Tested on Windows 11 with the repo toolchain, merged into current
I didn't test with game data. Tested locally with an AI-assisted script (Claude Code); I checked the results before posting. |
|
Duplicate check: this overlaps #1641 (GameInput QueryInterface). #1641 accepts both |
|
Agreed that VIC-BT-020 should land through one PR. #1641 is the broader implementation. Its device IID still exposes a v0 table with 21 of the SDK's 22 slots, so I verified the missing release entry and two typed boolean stubs in a local Windows test. All eight GameInput tests passed with the correction. I posted the details on #1641. I'll keep this PR open while that device-table follow-up is pending so the IUnknown fix remains available for review. AI-assisted (Codex). |
|
Automated triage for the maintainers. Merge candidate. The head ( Reply to the author: thanks for the summary. Whether #1942's interface IIDs and slot layout are acceptable under the asset policy is a call for the maintainer, not for triage. If #1942 is accepted, this PR becomes redundant. Until then it remains the narrower fix that depends on none of those constants, so the verdict stays. CI: passing. Generated by Claude Code |
|
Quick update for maintainers reviewing the overlap: #1641 was re-landed as #1942. That PR is open, its CI is green, and it includes the 22-slot device-table correction discussed above. Both PRs change GameInput COM slot 0, so they should be considered together when choosing what lands. AI-assisted (OpenAI Codex). |
|
For whoever picks one of these: #1942 (re-land of #1641) is a superset of this change. Same slot-0
#1942 is open, mergeable and green; #1329 is green too. Landing either is fine by me — if #1329 goes first, #1942 can drop its |
|
For whoever triages this next: the open question in the triage note above — whether #1942's interface constants meet the asset policy, the ground its predecessor #1641 was closed on — now has the evidence laid out on #1942: GameInput's header ships publicly for PC via NuGet (not only through the Xbox GDK), and If that settles it in #1942's favour, this PR is redundant and I will close it — #1942 is the superset, it covers both #1753-style IID queries and the 22-slot device table, and one fix landing beats two PRs sitting. I am leaving it open only as the fallback that depends on none of those constants, in case the policy call goes the other way. (Corrected the triage link in this comment: it first pointed at a comment on #2033.) AI-assisted (Claude Code). |
|
Closing this in favour of #1942, which covers the same calls plus a case this one gets wrong. Both add if unsafe { *iid } != IID_IUNKNOWN {
return fail(out, E_NOINTERFACE);
}so an object asked for the interface it already implements answers That makes this a subset of #1942 with a wrong answer on the own-IID case, so there is no reason for a reviewer to read both. #1942 is the one to take. For comparison if anyone needs it: this is +71/-6, #1942 is +157/-18, both in the one file, with the same hunk sites. AI-assisted (Claude Code); the comparison is from the two patches as they stand now. |
Addresses item 20 (VIC-BT-020) in #1242. The input, device and reading vtables now answer
QueryInterface(IID_IUnknown)with their identity pointer. A successful reading query takes a counted reference. Unsupported interface IDs still returnE_NOINTERFACEand clear the output, and null arguments returnE_POINTER.The synthetic regression invokes slot zero on all three objects. It verifies identity, cleared outputs on failure, and the reading's lifetime through the final release. The test failed against the existing implementation and passes with the fix. The HLE package passed 96 tests on Windows, and Clippy with all targets and features and the asset-policy hook passed.
AI-assisted (Codex).