Not removing previous cheat folder for current platform.

This commit is contained in:
José Manuel Barroso Galindo
2022-12-17 02:39:55 +01:00
parent 3d3e00e587
commit d0aff44bf3

View File

@@ -516,9 +516,6 @@ def install_cheats(mapping, target_dir):
tmp_zip = f'/tmp/{cheat_key}{cheat_platform}.zip'
cheat_folder = f'{target_dir}/Cheats/{cheat_platform}'
if Path(cheat_folder).exists():
shutil.rmtree(cheat_folder, ignore_errors=True)
print(f'cheat_keys: {cheat_key}, cheat_platform: {cheat_platform}, cheat_zip: {cheat_zip}, cheat_url: {cheat_url}')
download_file(cheat_url, tmp_zip)