Skip to content

Commit

Permalink
[cli] Fix launchable add-ons that are also installable
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Dec 24, 2023
1 parent ac62906 commit 96e07ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legendary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def launch_game(self, args, extra):
return self._launch_origin(args)

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
if game.is_launchable_addon:
addon_app_name = app_name
Expand Down

0 comments on commit 96e07ff

Please sign in to comment.