mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +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'])
|
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
|
||||||
|
|
Loading…
Reference in a new issue