proton: Add noesync,nofsync for Apex Legends

This commit is contained in:
Andrew Eikum 2022-02-10 14:14:36 -06:00 committed by Arkadiusz Hiler
parent b7d532badf
commit 25a58123a1

12
proton
View File

@ -911,6 +911,16 @@ def comma_escaped(s):
idx = idx - 1
return escaped
#hopefully short-lived, app-specific workarounds for Proton bugs
def default_compat_config():
ret = set()
if "SteamAppId" in os.environ:
appid = os.environ["SteamAppId"]
if appid == "1172470": #Apex Legends
ret.add("noesync")
ret.add("nofsync")
return ret
class Session:
def __init__(self):
self.log_file = None
@ -922,7 +932,7 @@ class Session:
"beclient_x64.dll": "b,n",
}
self.compat_config = set()
self.compat_config = default_compat_config()
self.cmdlineappend = []
if "STEAM_COMPAT_CONFIG" in os.environ: