1
0
Fork 0
mirror of synced 2024-05-09 15:12:47 +12:00

Merge pull request #230 from loathingKernel/fixups

ImageManager: Also test if 'game.metadata' has 'keyImages'
This commit is contained in:
Dummerle 2022-07-29 00:00:12 +02:00 committed by GitHub
commit fd5fcd3b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ class ImageManager(QObject):
json_data = json.load(open(self.__img_json(game.app_name), "r"))
# lk: fast path for games without images, convert Rare's logo
if not game.metadata["keyImages"]:
if not game.metadata.get("keyImages", False):
if not self.__img_color(game.app_name).is_file() or not self.__img_gray(game.app_name).is_file():
cache_data: Dict = dict(zip(self.__img_types, [None] * len(self.__img_types)))
cache_data["DieselGameBoxTall"] = open(