From 3d818cde98c9d354caacef3b9bb483d930b188c6 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:24:04 -0800 Subject: [PATCH] Service was failing, fixed check on the epic paths --- NSLGameScanner.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 0ecaa31..326c120 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -327,11 +327,16 @@ print("Existing Shortcuts:") for shortcut in shortcuts['shortcuts'].values(): print(f"AppID for {shortcut.get('appname')}: {shortcut.get('appid')}") + + + + + # Epic Games Scanner item_dir = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}/pfx/drive_c/ProgramData/Epic/EpicGamesLauncher/Data/Manifests/" dat_file_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}/pfx/drive_c/ProgramData/Epic/UnrealEngineLauncher/LauncherInstalled.dat" -if os.path.exists(dat_file_path): +if os.path.exists(dat_file_path) and os.path.exists(item_dir): with open(dat_file_path, 'r') as file: dat_data = json.load(file)