proton: Use STEAM_COMPAT_APP_ID to decide when to run xalia.

CW-Bug-Id: #23808

SteamAppId isn't set for InstallScripts, but this variable is.
This commit is contained in:
Esme Povirk 2024-05-24 20:00:07 +00:00 committed by Arkadiusz Hiler
parent ed3c44ecbc
commit 95ff2846f2

2
proton
View File

@ -1150,6 +1150,8 @@ def default_compat_config():
]: ]:
ret.add("hideapu") ret.add("hideapu")
if "STEAM_COMPAT_APP_ID" in os.environ:
appid = os.environ["STEAM_COMPAT_APP_ID"]
if appid in [ if appid in [
"7000", # Tomb Raider: Legend "7000", # Tomb Raider: Legend
"8000", # Tomb Raider: Anniversary "8000", # Tomb Raider: Anniversary