[cli] Allow launching DLC if executable is set

This commit is contained in:
derrod 2023-06-26 07:05:43 +02:00
parent c69301212c
commit 07a16f7b84

View file

@ -579,8 +579,8 @@ class LegendaryCLI:
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):