mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[core/utils] Show warning/info if no save files have been found
This should alert users in cases the exclude/include filters fail
This commit is contained in:
parent
8a60d1c436
commit
03c503b4e6
|
@ -360,6 +360,10 @@ class LegendaryCore:
|
||||||
files = sgh.package_savegame(save_dir, app_name, self.egs.user.get('account_id'),
|
files = sgh.package_savegame(save_dir, app_name, self.egs.user.get('account_id'),
|
||||||
save_path, include_f, exclude_f, local_dt)
|
save_path, include_f, exclude_f, local_dt)
|
||||||
|
|
||||||
|
if not files:
|
||||||
|
self.log.info('No files to upload. If you believe this is incorrect run command with "--disable-filters"')
|
||||||
|
return
|
||||||
|
|
||||||
self.log.debug(f'Packed files: {str(files)}, creating cloud files...')
|
self.log.debug(f'Packed files: {str(files)}, creating cloud files...')
|
||||||
resp = self.egs.create_game_cloud_saves(app_name, list(files.keys()))
|
resp = self.egs.create_game_cloud_saves(app_name, list(files.keys()))
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,11 @@ class SaveGameHelper:
|
||||||
|
|
||||||
files.append(_file_path)
|
files.append(_file_path)
|
||||||
|
|
||||||
|
if not files:
|
||||||
|
if exclude_filter or include_filter:
|
||||||
|
self.log.warning('No save files matching the specified filters have been found.')
|
||||||
|
return self.files
|
||||||
|
|
||||||
chunk_num = 0
|
chunk_num = 0
|
||||||
cur_chunk = None
|
cur_chunk = None
|
||||||
cur_buffer = None
|
cur_buffer = None
|
||||||
|
|
Loading…
Reference in a new issue