mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Fix some remaining platform-unawareness
This commit is contained in:
parent
4fd50a93a0
commit
8fb4c56730
|
@ -1428,7 +1428,7 @@ class LegendaryCLI:
|
||||||
# list all owned DLC based on entitlements
|
# list all owned DLC based on entitlements
|
||||||
if entitlements and not game.is_dlc:
|
if entitlements and not game.is_dlc:
|
||||||
owned_entitlements = {i['entitlementName'] for i in entitlements}
|
owned_entitlements = {i['entitlementName'] for i in entitlements}
|
||||||
owned_app_names = {g.app_name for g in self.core.get_assets()}
|
owned_app_names = {g.app_name for g in self.core.get_assets(args.platform)}
|
||||||
owned_dlc = []
|
owned_dlc = []
|
||||||
for dlc in game.metadata.get('dlcItemList', []):
|
for dlc in game.metadata.get('dlcItemList', []):
|
||||||
installable = dlc.get('releaseInfo', None)
|
installable = dlc.get('releaseInfo', None)
|
||||||
|
@ -1706,7 +1706,9 @@ class LegendaryCLI:
|
||||||
before = self.core.lgd.get_dir_size()
|
before = self.core.lgd.get_dir_size()
|
||||||
# delete metadata
|
# delete metadata
|
||||||
logger.debug('Removing app metadata...')
|
logger.debug('Removing app metadata...')
|
||||||
app_names = set(g.app_name for g in self.core.get_assets(update_assets=False))
|
app_names = {}
|
||||||
|
for _platform in self.core.get_installed_platforms():
|
||||||
|
app_names |= set(g.app_name for g in self.core.get_assets(update_assets=False, platform=_platform))
|
||||||
self.core.lgd.clean_metadata(app_names)
|
self.core.lgd.clean_metadata(app_names)
|
||||||
|
|
||||||
if not args.keep_manifests:
|
if not args.keep_manifests:
|
||||||
|
|
Loading…
Reference in a new issue