Update NSLGameScanner.py

This commit is contained in:
Roy 2024-10-25 15:24:09 -07:00 committed by GitHub
parent b3333347af
commit 1f628b2c54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -840,8 +840,6 @@ else:
# EA App Game Scanner # EA App Game Scanner
# EA App Game Scanner
def get_ea_app_game_info(installed_games, game_directory_path): def get_ea_app_game_info(installed_games, game_directory_path):
game_dict = {} game_dict = {}
@ -885,13 +883,12 @@ else:
#Gog Galaxy Scanner
# Gog Galaxy Scanner # Gog Galaxy Scanner
def getGogGameInfo(filePath): def getGogGameInfo(filePath):
# Check if the file contains any GOG entries # Check if the file contains any GOG entries
with open(filePath, 'r') as file: with open(filePath, 'r') as file:
if "GOG.com" not in file.read(): if "GOG.com" not in file.read():
decky_plugin.logger.info("No GOG entries found in the registry file. Skipping GOG Galaxy Games Scanner.") print("No GOG entries found in the registry file. Skipping GOG Galaxy Games Scanner.")
return {} return {}
# If GOG entries exist, parse the registry file # If GOG entries exist, parse the registry file