Skip to content

Commit

Permalink
Return empty list when dxvk versions aren't loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Jan 15, 2021
1 parent 6131f50 commit 1be0d6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lutris/util/wine/dxvk.py
Expand Up @@ -62,6 +62,8 @@ def dxvk_path(self):

def load_dxvk_versions(self):
versions_path = os.path.join(self.base_dir, "dxvk_versions.json")
if not system.path_exists(versions_path):
return []
with open(versions_path, "r") as dxvk_version_file:
dxvk_versions = [v["tag_name"] for v in json.load(dxvk_version_file)]
return dxvk_versions
Expand Down
2 changes: 0 additions & 2 deletions lutris/util/wine/wine.py
@@ -1,12 +1,10 @@
"""Utilities for manipulating Wine"""
# Standard Library
import os
import subprocess
from collections import OrderedDict
from functools import lru_cache
from gettext import gettext as _

# Lutris Modules
from lutris import runtime, settings
from lutris.gui.dialogs import DontShowAgainDialog, ErrorDialog
from lutris.runners.steam import steam
Expand Down

0 comments on commit 1be0d6e

Please sign in to comment.