proton: Add hideapu config option and enable it for Deathloop.

CW-Bug-Id: #23489
This commit is contained in:
Paul Gofman 2024-03-04 12:29:32 -06:00 committed by Arkadiusz Hiler
parent 7620dd6249
commit d3f7ecfc32

9
proton
View File

@ -1129,6 +1129,11 @@ def default_compat_config():
]:
ret.add("forcenvapi")
if appid in [
"1252330" #Deathloop
]:
ret.add("hideapu")
return ret
class Session:
@ -1305,6 +1310,7 @@ class Session:
self.check_environment("PROTON_HEAP_DELAY_FREE", "heapdelayfree")
self.check_environment("PROTON_DISABLE_NVAPI", "disablenvapi")
self.check_environment("PROTON_FORCE_NVAPI", "forcenvapi")
self.check_environment("PROTON_HIDE_APU", "hideapu")
if "noesync" in self.compat_config:
self.env.pop("WINEESYNC", "")
@ -1350,6 +1356,9 @@ class Session:
if "hidenvgpu" in self.compat_config and "forcenvapi" not in self.compat_config:
self.env["WINE_HIDE_NVIDIA_GPU"] = "1"
if "hideapu" in self.compat_config:
self.env["WINE_HIDE_APU"] = "1"
if "usenativexinput13" in self.compat_config:
self.dlloverrides["xinput1_3"] = "n"