From 0e81b87face0ef23091b92b65f47106d57c32414 Mon Sep 17 00:00:00 2001 From: derrod <xlnedder@gmail.com> Date: Fri, 24 Apr 2020 06:38:11 +0200 Subject: [PATCH] [cli] Simplify "is game installed" check --- legendary/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index 9e41b36..b4d9a46 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -229,7 +229,7 @@ def main(): target_app = next(i for i in (args.install, args.update, args.download) if i) if args.update: - if not core.get_installed_game(target_app): + if not core.is_installed(target_app): logger.error(f'Update requested for "{target_app}", but app not installed!') exit(1) @@ -244,7 +244,7 @@ def main(): app_name = game.metadata['mainGameItem']['releaseInfo'][0]['appId'] base_game = core.get_game(app_name) # check if base_game is actually installed - if not core.get_installed_game(app_name): + if not core.is_installed(app_name): # download mode doesn't care about whether or not something's installed if args.install or args.update: logger.fatal(f'Base game "{app_name}" is not installed!')