Skip to content

Commit

Permalink
Readded the Print Strings!
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Jan 24, 2024
1 parent 963f8e2 commit 9e208a8
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 @@ -496,6 +496,7 @@ def getEAAppGameInfo(filePath):
game_directory_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{ea_app_launcher}/pfx/drive_c/Program Files/EA Games/"

if not os.path.exists(registry_file_path) or not os.path.isdir(game_directory_path):
print("EA App game data not found. Skipping EA App Scanner.")
pass
else:
game_dict = getEAAppGameInfo(registry_file_path)
Expand All @@ -509,10 +510,12 @@ def getEAAppGameInfo(filePath):
shortcut_id = get_steam_shortcut_id(exe_path, game)
# Check if the game already exists in the shortcuts using the id
if any(s.get('appid') == str(shortcut_id) for s in shortcuts['shortcuts'].values()):
print(f"Existing shortcut found based on shortcut ID for game {game}. Skipping.")
continue

# Check if the game already exists in the shortcuts using the fields (probably unnecessary)
if any(s.get('appname') == game 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 {game}. Skipping.")
continue

game_id = get_game_id(game)
Expand Down

0 comments on commit 9e208a8

Please sign in to comment.