diff --git a/caver/patcher.py b/caver/patcher.py index 7e8a6d9..a65e09c 100644 --- a/caver/patcher.py +++ b/caver/patcher.py @@ -6,10 +6,12 @@ import logging import shutil import textwrap import sys +import platform as pl import pre_edited_cs + CSVERSION = 5 class CaverException(Exception): @@ -56,6 +58,12 @@ def patch_files(patch_data: dict, output_dir: Path, platform: CSPlatform, progre progress_update("Copying UUID...", i/total) patch_uuid(patch_data["uuid"], output_dir) + if platform == CSPlatform.TWEAKED: + if pl.system() == "Linux": + output_dir.joinpath("CSTweaked.exe").unlink() + else: + output_dir.joinpath("CSTweaked").unlink() + def ensure_base_files_exist(platform: CSPlatform, output_dir: Path): internal_copy = pre_edited_cs.get_path()