[cli] Abort install if game is managed by third party store

This commit is contained in:
derrod 2021-10-16 19:47:19 +02:00
parent 0ef916e9c5
commit 856c5ef2ee

View file

@ -706,6 +706,13 @@ class LegendaryCLI:
f'did you type the name correctly?')
exit(1)
if store := game.third_party_store:
logger.error(f'The selected title has to be installed via a third-party store: {store}')
if store == 'Origin':
logger.info(f'For Origin games use "legendary launch --origin {args.app_name}" to '
f'activate and/or run the game.')
exit(0)
if game.is_dlc:
logger.info('Install candidate is DLC')
app_name = game.metadata['mainGameItem']['releaseInfo'][0]['appId']