From 3e6e173772a4f548e8b0e0305535cbe8fa43dc6b Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 5 Nov 2020 15:25:37 +0100 Subject: [PATCH] [core] Fix Uplay installer check --- legendary/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index 79bddbf..11e91ef 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -874,8 +874,9 @@ class LegendaryCore: # check if the game actually ships the files or just a uplay installer + packed game files executables = [f for f in analysis.manifest_comparison.added if - f.endswith('.exe') and not f.startswith('Installer/')] - if not any('uplay' not in e.lower() for e in executables): + f.lower().endswith('.exe') and not f.startswith('Installer/')] + if not updating and not any('uplay' not in e.lower() for e in executables) and \ + any('uplay' in e.lower() for e in executables): results.failures.add('This game requires installation via Uplay and does not ship executable game files.') # check if the game launches via uplay