Skip to content

Commit

Permalink
Allow installing ubisoft games that includes compressed files
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj committed May 24, 2024
1 parent 1aa9062 commit 83fe781
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions legendary/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1566,14 +1566,7 @@ def check_installation_conditions(analysis: AnalysisResult,
f'available. If you previously deleted the game folder without uninstalling, run '
f'"legendary uninstall -y {game.app_name}" first.')

# check if the game actually ships the files or just a uplay installer + packed game files
uplay_required = False
executables = [f for f in analysis.manifest_comparison.added if
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):
uplay_required = True
results.failures.add('This game requires installation via Uplay and does not ship executable game files.')

if install.prereq_info:
prereq_path = install.prereq_info['path'].lower()
Expand Down

0 comments on commit 83fe781

Please sign in to comment.