fix(patch): unlink file if auto-repair succeed

This commit is contained in:
tretrauit 2024-01-03 06:31:57 +07:00
parent 7ed2b2e643
commit d1bda2dc32

View File

@ -75,6 +75,8 @@ def apply_update_archive(
except Exception:
# Let the game download the file.
file.rename(file.with_suffix(""))
else:
file.unlink()
else:
# Let the game download the file.
file.rename(file.with_suffix(""))