1
0
Fork 0
mirror of synced 2024-06-17 10:04:43 +12:00

Lgndr: Save the manifest if it was downloaded while verifying

This commit is contained in:
loathingKernel 2022-07-10 21:49:31 +03:00
parent 545d77ef07
commit 10b845c0aa

View file

@ -251,6 +251,10 @@ class LegendaryCLI(legendary.cli.LegendaryCLI):
logger.warning('No manifest could be loaded, the file may be missing. Downloading the latest manifest.')
game = self.core.get_game(args.app_name, platform=igame.platform)
manifest_data, _ = self.core.get_cdn_manifest(game, igame.platform)
# Rare: Save the manifest if we downloaded it because it was missing
self.core.lgd.save_manifest(game.app_name, manifest_data,
version=self.core.load_manifest(manifest_data).meta.build_version,
platform=igame.platform)
else:
logger.critical(f'Manifest appears to be missing! To repair, run "legendary repair '
f'{args.app_name} --repair-and-update", this will however redownload all files '