From beef0223c351fb236df0c3389b9cf9f7beb447e9 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Fri, 5 May 2023 14:41:06 +0200 Subject: [PATCH] Update Heroic GOG path --- src/importers/heroic_importer.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/importers/heroic_importer.py b/src/importers/heroic_importer.py index 458b351..e3c4b20 100644 --- a/src/importers/heroic_importer.py +++ b/src/importers/heroic_importer.py @@ -116,7 +116,9 @@ def heroic_importer(win): # Import GOG games if not win.schema.get_boolean("heroic-import-gog"): pass - elif (heroic_dir / "gog_store" / "installed.json").exists(): + elif (heroic_dir / "gog_store" / "installed.json").exists() and ( + heroic_dir / "store_cache" / "gog_library.json" + ).exists(): data = (heroic_dir / "gog_store" / "installed.json").read_text("utf-8") installed = json.loads(data) @@ -136,8 +138,8 @@ def heroic_importer(win): importer.save_game() continue - # Get game title and developer from library.json as they are not present in installed.json - data = (heroic_dir / "gog_store" / "library.json").read_text("utf-8") + # Get game title and developer from gog_library.json as they are not present in installed.json + data = (heroic_dir / "store_cache" / "gog_library.json").read_text("utf-8") library = json.loads(data) for game in library["games"]: if game["app_name"] == app_name: