Skip to content

Commit

Permalink
[cli] Allow launching DLC if executable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Jun 26, 2023
1 parent c693012 commit 07a16f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions legendary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ def launch_game(self, args, extra):
logger.error(f'Game {app_name} is not currently installed!')
exit(1)

if igame.is_dlc:
logger.error(f'{app_name} is DLC; please launch the base game instead!')
if igame.is_dlc and not igame.executable:
logger.error(f'{app_name} is DLC without an executable; please launch the base game instead!')
exit(1)

if not os.path.exists(igame.install_path):
Expand Down

0 comments on commit 07a16f7

Please sign in to comment.