gameinput: serve GameInput.dll's ordinal 1 again (RT-GAMEINPUT-ORD1) #127
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!127
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/127/head"
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?
@Mumogg on GitHub · 2026-11-24 02:24 UTC · original
Mumogg:gameinput-ordinal-1→main· +6 −0 · 2 files · 1 commits · merged 2026-11-24 03:36 UTCClaimed in #14 as
RT-GAMEINPUT-ORD1.What and why
The retail executable imports
GameInputCreatefromGameInput.dllby ordinal 1, and the loader looks an ordinal import up as#1. Onmain9ec34cdffthe shim table has no#1entry, so the import binds to the host'sGameInput.dll. On Windows the installed GameInput answers. Under Wine it is the builtin stub: the call fails and the title stops on its result.This is commit
5e45c7da9by Gustavo Kissel, cherry-picked unchanged (-x, authorship kept). It is an ancestor ofmain, but the change is no longer in the tree, so a merge does not bring it back.Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, SDL3 fetched, own 1.0.2.1 copy, network off.
main9ec34cdff,gta6rt --run: the title's ownint30.65 s after start, 0 D3D12 calls.tools/int3_cause.pynames the call whose result leads there:GameInput.dll!#1. The import listing shows it bound to the host, and Wine's builtingameinputmodule is loaded.shim, the log has thegameinput: SDL 3.4.20 gamepadsline, and the run goes on to the next stop (with the DirectStorage shim of the companion PR:D3D12XboxCreateDevice ok).gameinput_testunder Wine: 364 checks, 0 failures (it includes the check for the#1alias).Not tested on Windows: there the host DLL answers either way, so this should change nothing but which code serves the call.
AI-assisted (Claude Code); built and run on the machine above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt