proton: Assume STEAM_COMPAT_CLIENT_INSTALL_PATH is always set

This commit is contained in:
Renaud Lepage 2021-05-18 06:45:37 -07:00 committed by Andrew Eikum
parent 57dc9d7062
commit 139ad89ed3

7
proton
View file

@ -433,12 +433,7 @@ class CompatData:
self.copy_pfx()
# collect configuration info
if "STEAM_COMPAT_CLIENT_INSTALL_PATH" in os.environ:
#modern steam client sets this
steamdir = os.environ["STEAM_COMPAT_CLIENT_INSTALL_PATH"]
else:
#linux-only fallback, really shouldn't get here
steamdir = os.environ["HOME"] + ".steam/root/"
steamdir = os.environ["STEAM_COMPAT_CLIENT_INSTALL_PATH"]
use_wined3d = "wined3d" in g_session.compat_config
use_dxvk_dxgi = "WINEDLLOVERRIDES" in g_session.env and "dxgi=n" in g_session.env["WINEDLLOVERRIDES"]