[core] Show warning in "info" if game asset is unavailable

Also disable manifest download as that will probably fail.
This commit is contained in:
derrod 2021-10-16 18:59:54 +02:00
parent 841db6bcb6
commit b57735abf3

View file

@ -1332,6 +1332,12 @@ class LegendaryCLI:
InfoItem = namedtuple('InfoItem', ['name', 'json_name', 'value', 'json_value']) InfoItem = namedtuple('InfoItem', ['name', 'json_name', 'value', 'json_value'])
game = self.core.get_game(app_name, update_meta=not args.offline) 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 manifest_data = None
entitlements = None entitlements = None
# load installed manifest or URI # load installed manifest or URI