Skip to content

Commit

Permalink
Add a gross hack to tolerate GE-Proton versions of Wine not having ar…
Browse files Browse the repository at this point in the history
…chitectures on the end of them.

I feel dirty, but it's the best I can do.
  • Loading branch information
danieljohnson2 committed Mar 26, 2024
1 parent ef5436e commit b2a819f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lutris/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b2a819f

Please sign in to comment.