From d2f6991d44c0d6960a23aeff5d159754950dc933 Mon Sep 17 00:00:00 2001 From: sysmoon14 <61550824+sysmoon14@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:19:44 +0000 Subject: [PATCH] added extra check for AppName and Exe in existing shortcut check --- NSLGameScanner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index b137395..197d241 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -308,6 +308,9 @@ def check_if_shortcut_exists(shortcut_id, display_name, exe_path, start_dir, lau if any(s.get('appname') == display_name and s.get('exe') == exe_path and s.get('StartDir') == start_dir and s.get('LaunchOptions') == launch_options for s in shortcuts['shortcuts'].values()): print(f"Existing shortcut found based on matching fields for game {display_name}. Skipping creation.") return True + if any(s.get('AppName') == display_name and s.get('Exe') == exe_path and s.get('StartDir') == start_dir and s.get('LaunchOptions') == launch_options for s in shortcuts['shortcuts'].values()): + print(f"Existing shortcut found based on matching fields for game {display_name}. Skipping creation.") + return True #End of Code