From 2c9007e958f1d4dcdc74b7bd0e83cf0524f84652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeLuCh=20B0=D0=B9?= Date: Sun, 21 Mar 2021 18:50:56 +0700 Subject: [PATCH] Pass manifest_name to upload func --- legendary/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index 9c3f613..02975d1 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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