Update NSLGameScanner.py

This commit is contained in:
Roy 2024-05-07 23:43:09 -07:00 committed by GitHub
parent 3c18608b01
commit 89bd5bff8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -727,10 +727,11 @@ else:
def getGogGameInfo(filePath):
# Check if the file contains any GOG entries
with open(filePath, 'r') as file:
if "[Software\\Wow6432Node\\GOG.com\\Games\\" not in file.read():
if "Software\\Wow6432Node\\GOG.com\\Games\\" not in file.read():
print("No GOG entries found in the registry file. Skipping GOG Galaxy Games Scanner.")
return {}
# If GOG entries exist, parse the registry file
game_dict = {}
with open(filePath, 'r') as file: