From 0e2a61aca597a035e3783e2928c8d2355bc6a97b Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 2 Jun 2020 12:12:42 +0200 Subject: [PATCH] [cli] list-installed: Show warning if game dir is missing --- legendary/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 50b2ed1..0f9679b 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -200,7 +200,9 @@ class LegendaryCLI: f'{game.install_size / (1024*1024*1024):.02f} GiB)') if args.include_dir: print(f' + Location: {game.install_path}') - if versions[game.app_name] != game.version: + if not os.path.exists(game.install_path): + print(f' ! Game does no longer appear to be installed (directory "{game.install_path}" missing)!') + elif versions[game.app_name] != game.version: print(f' -> Update available! Installed: {game.version}, Latest: {versions[game.app_name]}') print(f'\nTotal: {len(games)}')