Update NSLGameScanner.py

This commit is contained in:
Roy 2024-05-07 23:10:01 -07:00 committed by GitHub
parent 090df2c32a
commit b8835534d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -768,7 +768,7 @@ def getGogGameInfo(filePath):
start_menu_link = re.findall(r'\"(.+?)\"', split_line[1])
if start_menu_link:
start_menu_link = start_menu_link[0]
if game_id and game_name and launch_command and "[GOG.com]" in start_menu_link:
if game_id and game_name and launch_command and start_menu_link and "[GOG.com]" in start_menu_link:
game_dict[game_name] = {'id': game_id, 'exe': exe_path}
game_id = None
game_name = None
@ -781,6 +781,7 @@ def getGogGameInfo(filePath):
# 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"