mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Fix launchable add-ons that are also installable
This commit is contained in:
parent
ac6290627c
commit
96e07ff453
|
@ -579,7 +579,7 @@ class LegendaryCLI:
|
||||||
return self._launch_origin(args)
|
return self._launch_origin(args)
|
||||||
|
|
||||||
igame = self.core.get_installed_game(app_name)
|
igame = self.core.get_installed_game(app_name)
|
||||||
if not igame and (game := self.core.get_game(app_name)) is not None:
|
if (not igame or not igame.executable) and (game := self.core.get_game(app_name)) is not None:
|
||||||
# override installed game with base title
|
# override installed game with base title
|
||||||
if game.is_launchable_addon:
|
if game.is_launchable_addon:
|
||||||
addon_app_name = app_name
|
addon_app_name = app_name
|
||||||
|
|
Loading…
Reference in a new issue