mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
fixed Ubisoft Scanner on some games
This commit is contained in:
parent
3bf61fcda1
commit
4f77e05dfb
@ -639,6 +639,7 @@ def getUplayGameInfo(folderPath, filePath):
|
|||||||
game_name = None
|
game_name = None
|
||||||
uplay_install_found = False
|
uplay_install_found = False
|
||||||
for line in file:
|
for line in file:
|
||||||
|
line = line.replace("\\x2019", "’")
|
||||||
if "Uplay Install" in line:
|
if "Uplay Install" in line:
|
||||||
uplay_id = re.findall(r'Uplay Install (\d+)', line)
|
uplay_id = re.findall(r'Uplay Install (\d+)', line)
|
||||||
if uplay_id:
|
if uplay_id:
|
||||||
@ -650,7 +651,7 @@ def getUplayGameInfo(folderPath, filePath):
|
|||||||
if game_name:
|
if game_name:
|
||||||
game_name = game_name[0]
|
game_name = game_name[0]
|
||||||
uplay_install_found = False
|
uplay_install_found = False
|
||||||
if uplay_id and game_name and uplay_id in uplay_ids: # Add the game's info to the dictionary if its ID was found in the folder
|
if uplay_id and game_name and uplay_id in uplay_ids:
|
||||||
game_dict[game_name] = uplay_id
|
game_dict[game_name] = uplay_id
|
||||||
uplay_id = None # Reset uplay_id
|
uplay_id = None # Reset uplay_id
|
||||||
game_name = None # Reset game_name
|
game_name = None # Reset game_name
|
||||||
|
Loading…
Reference in New Issue
Block a user