From 62a64472e64f62954e9b8e3506bc53fb3c8fd1d5 Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Mon, 1 Sep 2025 13:11:31 +0300 Subject: [PATCH] [core] check for `STEAM_COMPAT_DATA_PATH` in global settings too when resolving save paths --- legendary/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index 04344e3..9cc95e9 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -910,6 +910,11 @@ class LegendaryCore: if not wine_pfx: wine_pfx = self.lgd.config.get('default.env', 'WINEPREFIX', fallback=None) wine_pfx = self.lgd.config.get('default', 'wine_prefix', fallback=wine_pfx) + # Proton is not officially supported, but people still use it, so look for it + if not wine_pfx: + proton_pfx = self.lgd.config.get('default.env', 'STEAM_COMPAT_DATA_PATH', fallback=None) + if proton_pfx: + wine_pfx = f'{proton_pfx}/pfx' # If we still didn't find anything, try to read the prefix from the environment variables of this process if not wine_pfx and sys_platform == 'darwin':