mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Show warning in "info" if game asset is unavailable
Also disable manifest download as that will probably fail.
This commit is contained in:
parent
841db6bcb6
commit
b57735abf3
|
@ -1332,6 +1332,12 @@ class LegendaryCLI:
|
|||
InfoItem = namedtuple('InfoItem', ['name', 'json_name', 'value', 'json_value'])
|
||||
|
||||
game = self.core.get_game(app_name, update_meta=not args.offline)
|
||||
if game and not self.core.asset_available(game):
|
||||
logger.warning(f'Asset information for "{game.app_name}" is missing, the game may have been removed from '
|
||||
f'your account or you may be logged in with a different account than the one used to build '
|
||||
f'legendary\'s metadata database.')
|
||||
args.offline = True
|
||||
|
||||
manifest_data = None
|
||||
entitlements = None
|
||||
# load installed manifest or URI
|
||||
|
|
Loading…
Reference in a new issue