Skip to content

Commit

Permalink
[core] Fix Uplay installer check
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Nov 5, 2020
1 parent 8206283 commit 3e6e173
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions legendary/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,9 @@ def check_installation_conditions(analysis: AnalysisResult,

# 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
Expand Down

0 comments on commit 3e6e173

Please sign in to comment.