Skip to content

Commit

Permalink
Update NSLGameScanner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored May 5, 2024
1 parent 2dbff9e commit 2c67e00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,7 @@ def getGogGameInfo(filePath):
launch_command = re.findall(r'\"(.+?)\"', split_line[1])
if launch_command:
launch_command = launch_command[0]
if game_id and game_name and (exe_path or launch_command):
if depends_on and depends_on in game_dict:
exe_path = game_dict[depends_on]['exe']
if game_id and game_name and launch_command:
game_dict[game_name] = {'id': game_id, 'exe': exe_path}
game_id = None
game_name = None
Expand All @@ -775,6 +773,7 @@ def getGogGameInfo(filePath):
return game_dict



# Define your paths
gog_games_directory = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/drive_c/Program Files (x86)/GOG Galaxy/Games"
registry_file_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gog_galaxy_launcher}/pfx/system.reg"
Expand Down

0 comments on commit 2c67e00

Please sign in to comment.