diff --git a/source/mkw/Patch.py b/source/mkw/Patch.py index 84f21a1..2a01699 100644 --- a/source/mkw/Patch.py +++ b/source/mkw/Patch.py @@ -403,8 +403,8 @@ class PatchFile(PatchObject): # patch the game with the subpatch print(f"[match] copying {self} to {game_subfile}") - game_subpath.parent.mkdir(parents=True, exist_ok=True) - with open(game_subfile.parent / patch_name, "wb") as file: + game_subfile.parent.mkdir(parents=True, exist_ok=True) + with open(game_subfile, "wb") as file: file.write(patch_content.read()) # else raise an error