diff options
| author | ubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com> | 2026-11-23 22:36:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 22:36:20 -0500 |
| commit | 6b74e8ecfad26005a16a2f466c64f96305d3358d (patch) | |
| tree | 8be8d3e45373c3013a6b28bd4206474f469607bc /runtime/shims/gameinput.cpp | |
| parent | 61653ac772095681cfa0152a2c3d31eddeef2948 (diff) | |
| parent | e0f76d28b5e84f69c8bd05a3b6fb414438f7e2b4 (diff) | |
Merge pull request #127 from Mumogg/gameinput-ordinal-1
gameinput: serve GameInput.dll's ordinal 1 again (RT-GAMEINPUT-ORD1)
Diffstat (limited to 'runtime/shims/gameinput.cpp')
| -rw-r--r-- | runtime/shims/gameinput.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/shims/gameinput.cpp b/runtime/shims/gameinput.cpp index 47ee190e3..402179cde 100644 --- a/runtime/shims/gameinput.cpp +++ b/runtime/shims/gameinput.cpp | |||
| @@ -2724,7 +2724,11 @@ void set_hid_backend(const HidBackend* backend) { g_hid = backend ? backend : &k | |||
| 2724 | 2724 | ||
| 2725 | } // namespace rt::gameinput | 2725 | } // namespace rt::gameinput |
| 2726 | 2726 | ||
| 2727 | // GameInputCreate is GameInput.dll's export 1, and the retail executable imports it by that ordinal, which the loader | ||
| 2728 | // looks up as "#1". Without the alias the import misses the shim and binds to the host's GameInput.dll; under Wine that | ||
| 2729 | // is the builtin stub, which fails, and the title stops on the result. | ||
| 2727 | SHIM_TABLE(gameinput, | 2730 | SHIM_TABLE(gameinput, |
| 2728 | {"gameinput.dll", "GameInputCreate", reinterpret_cast<void*>(&GameInputCreate)}, | 2731 | {"gameinput.dll", "GameInputCreate", reinterpret_cast<void*>(&GameInputCreate)}, |
| 2732 | {"gameinput.dll", "#1", reinterpret_cast<void*>(&GameInputCreate)}, | ||
| 2729 | {"xgameruntime.dll", "GameInputCreate", reinterpret_cast<void*>(&GameInputCreate)}, | 2733 | {"xgameruntime.dll", "GameInputCreate", reinterpret_cast<void*>(&GameInputCreate)}, |
| 2730 | ); | 2734 | ); |