proton: Unset WINE{E,F}SYNC if they are disabled
This commit is contained in:
parent
16c6c2756a
commit
1a0cf7f7e2
1 changed files with 6 additions and 2 deletions
8
proton
8
proton
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue