Skip to content

Commit

Permalink
Duplicate Ubisoft Connect Entry made by NSLGameScanner.py corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
entropydo authored Feb 23, 2024
1 parent a72d748 commit bcbe3e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def getBnetGameInfo(filePath):
print("Battle.net game data not found. Skipping Battle.net Games Scanner.")
else:
game_dict = getBnetGameInfo(registry_file_path)
if game_dict is None or 'unknown':
if game_dict is None:
# Skip the rest of the Battle.net scanner
pass
else:
Expand All @@ -851,7 +851,10 @@ def getBnetGameInfo(filePath):
if game == "Overwatch":
game = "Overwatch 2"

if game_info['flavor']:
if game_info['flavor'] == "unknown":
pass

elif game_info['flavor']:
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{bnet_launcher}/\" %command% \"battlenet://{game_info['flavor']}\""
exe_path = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{bnet_launcher}/pfx/drive_c/Program Files (x86)/Battle.net/Battle.net.exe\" --exec=\"launch {game_info['flavor']}\""
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{bnet_launcher}/pfx/drive_c/Program Files (x86)/Battle.net/\""
Expand Down

0 comments on commit bcbe3e4

Please sign in to comment.