proton: Unset WINE{E,F}SYNC if they are disabled

This commit is contained in:
Andrew Eikum 2020-04-27 07:51:44 -05:00
parent 16c6c2756a
commit 1a0cf7f7e2

8
proton
View file

@ -484,10 +484,14 @@ class Session:
self.check_environment("PROTON_OLD_GL_STRING", "oldglstr")
self.check_environment("PROTON_USE_SECCOMP", "seccomp")
if not "noesync" in self.compat_config:
if "noesync" in self.compat_config:
self.env.pop("WINEESYNC", "")
else:
self.env["WINEESYNC"] = "1"
if not "nofsync" in self.compat_config:
if "nofsync" in self.compat_config:
self.env.pop("WINEFSYNC", "")
else:
self.env["WINEFSYNC"] = "1"
if "seccomp" in self.compat_config: