1
0
Fork 0
mirror of synced 2024-05-20 12:32:50 +12:00

ImageManager: Also test if 'game.metadata' has 'keyImages'

This commit is contained in:
loathingKernel 2022-07-28 13:51:14 +03:00
parent 44926869bb
commit 4139797eff

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(