Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Hiler <ahiler@codeweavers.com>2021-10-05 17:37:22 +0300
committerArkadiusz Hiler <ahiler@codeweavers.com>2021-10-05 17:43:25 +0300
commit5e2cf117ce06104da0a582414a27ec0594a02b51 (patch)
tree78406e402d9a3111dbf9f5716ca846de4b8b4892
parentb0db1c3bfeede775a67e73ad5b7184d02403f9e6 (diff)
proton: Add usenativexinput13 compat config option.
Various games using KT Engine like recent WRC and TT Isle of Man, when run in a win10 prefix, try to load UWP/xinput1_3.dll that ships with the games. It seems to be mostly-compatible xinput implementation built on top of windows.gaming.input.dll. However if we try to replace it with the builtin the game crashes because it tries to call entry points that are not available in the original xinput (that's the "mostly-compatible" part), so we need this override. Since our windows.gaming.input.dll implementation is just a stub controllers other than steering wheels (which are handled through dinput) do not work.
-rwxr-xr-xproton3
1 files changed, 3 insertions, 0 deletions
diff --git a/proton b/proton
index 42ea687a..32f9d7a1 100755
--- a/proton
+++ b/proton
@@ -1058,6 +1058,9 @@ class Session:
if "hidenvgpu" in self.compat_config:
self.env["WINE_HIDE_NVIDIA_GPU"] = "1"
+ if "usenativexinput13" in self.compat_config:
+ self.dlloverrides["xinput1_3"] = "n"
+
if "PROTON_CRASH_REPORT_DIR" in self.env:
self.env["WINE_CRASH_REPORT_DIR"] = self.env["PROTON_CRASH_REPORT_DIR"]