Pass manifest_name to upload func

This commit is contained in:
LeLuCh B0й 2021-03-21 18:50:56 +07:00 committed by GitHub
parent 313323e43a
commit 2c9007e958
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,7 +408,7 @@ class LegendaryCLI:
continue
logger.info('Downloading remote savegame...')
self.core.download_saves(igame.app_name, save_dir=igame.save_path, clean_dir=True,
self.core.download_saves(igame.app_name, save_dir=igame.save_path, clean_dir=False,
manifest_name=latest_save[igame.app_name].manifest_name)
elif res == SaveGameStatus.LOCAL_NEWER or args.force_upload:
if res == SaveGameStatus.LOCAL_NEWER:
@ -428,7 +428,8 @@ class LegendaryCLI:
logger.info('Not uploading...')
continue
logger.info('Uploading local savegame...')
self.core.upload_save(igame.app_name, igame.save_path, dt_l, args.disable_filters)
self.core.upload_save(igame.app_name, igame.save_path, dt_l, args.disable_filters,
latest_save[igame.app_name].manifest_name)
def launch_game(self, args, extra):
app_name = args.app_name