proton: Enable the new SDL 2.30 Steam Input integration.

CW-Bug-Id: #23185
This commit is contained in:
Rémi Bernon 2024-01-23 09:43:02 +01:00
parent 3bf7e4d032
commit 5d805b6986

7
proton
View File

@ -1317,6 +1317,10 @@ class Session:
else:
self.env.pop("LC_ALL", "")
# CW-Bug-Id: #23185 Enable the new SDL 2.30 Steam Input integration.
if "SteamVirtualGamepadInfo_Proton" in self.env and "SteamVirtualGamepadInfo" not in self.env:
self.env["SteamVirtualGamepadInfo"] = self.env["SteamVirtualGamepadInfo_Proton"]
self.env.pop("WINEARCH", "")
if 'ORIG_'+ld_path_var not in os.environ:
@ -1746,9 +1750,6 @@ if __name__ == "__main__":
log("No compat data path?")
sys.exit(1)
# CW-Bug-Id: #23185 Avoid triggering new SDL 2.30 behavior.
os.environ.pop('SteamVirtualGamepadInfo', None)
g_proton = Proton(os.path.dirname(sys.argv[0]))
g_proton.cleanup_legacy_dist()