From b2a819fb2bd0e3e0ae26ef7e55c1fdf3995544d8 Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Tue, 26 Mar 2024 17:46:54 -0400 Subject: [PATCH] Add a gross hack to tolerate GE-Proton versions of Wine not having architectures on the end of them. I feel dirty, but it's the best I can do. --- lutris/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lutris/api.py b/lutris/api.py index 0d27ad2bd..153df0763 100644 --- a/lutris/api.py +++ b/lutris/api.py @@ -212,6 +212,12 @@ def format_version_architecture(base_version: str, arch: Optional[str] = None) - if not base_version: return "" + # A gross hack, since runner versions could be used with non-Wine runners, + # but it so happens we don't. 'GE-Proton' versions arbitrarily do not have + # an architecture on them - they are always 64-bit. + if base_version.startswith("GE-Proton"): + return base_version + if arch: return "{}-{}".format(base_version, arch)