Fix GOG path check

This commit is contained in:
kramo
2023-04-28 18:58:16 +02:00
parent 82aceb3b18
commit caf0706d22

View File

@@ -116,7 +116,7 @@ def heroic_importer(win):
if not win.schema.get_boolean("heroic-import-gog"):
pass
elif (heroic_dir / "gog_store" / "installed.json").exists() and (
heroic_dir / "gog_store" / "library.json"
heroic_dir / "store_cache" / "gog_library.json"
).exists():
installed = json.load((heroic_dir / "gog_store" / "installed.json").open())
@@ -136,8 +136,10 @@ def heroic_importer(win):
importer.save_game()
continue
# Get game title and developer from library.json as they are not present in installed.json
library = json.load((heroic_dir / "store_cache" / "gog_library.json").open())
# Get game title and developer from gog_library.json as they are not present in installed.json
library = json.load(
(heroic_dir / "store_cache" / "gog_library.json").open()
)
for game in library["games"]:
if game["app_name"] == app_name:
values["developer"] = game["developer"]