mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] list-installed: Show warning if game dir is missing
This commit is contained in:
parent
1ec6ef1899
commit
0e2a61aca5
|
@ -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)}')
|
||||
|
|
Loading…
Reference in a new issue