diff options
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 | ); |