Skip to content

Commit

Permalink
added extra check for AppName and Exe in existing shortcut check
Browse files Browse the repository at this point in the history
  • Loading branch information
sysmoon14 authored Feb 27, 2024
1 parent 1f41ecb commit d2f6991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit d2f6991

Please sign in to comment.