From c9ef521f534b8ab222ce8321f4fcbeee35c99a9a Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:48:57 -0700 Subject: [PATCH] fixed paths --- NSLGameScanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 211ebc4..336cbea 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -1166,7 +1166,7 @@ def parse_butler_db(content): def dbpath_to_game(paths): # Convert the Windows-style path from the database to a Unix-style path db_path = paths[0].replace("\\\\", "/").replace("C:", "") - linux_path = "/home/deck/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c" + db_path + linux_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{itchio_launcher}/pfx/drive_c" + db_path receipt_path = os.path.join(linux_path, ".itch", "receipt.json.gz") if not os.path.exists(receipt_path): return None