Skip to content

Commit

Permalink
Merge pull request #212 from entropydo/patch-1
Browse files Browse the repository at this point in the history
Duplicate Ubisoft Connect Entry made by NSLGameScanner.py
  • Loading branch information
moraroy authored Feb 24, 2024
2 parents 6177b9c + bcbe3e4 commit 30e5817
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 30e5817

Please sign in to comment.