match type operation where not copied to the correct path

This commit is contained in:
Faraphel 2022-07-03 23:27:40 +02:00
parent 32dcefefc9
commit d509567848

View file

@ -403,8 +403,8 @@ class PatchFile(PatchObject):
# patch the game with the subpatch # patch the game with the subpatch
print(f"[match] copying {self} to {game_subfile}") print(f"[match] copying {self} to {game_subfile}")
game_subpath.parent.mkdir(parents=True, exist_ok=True) game_subfile.parent.mkdir(parents=True, exist_ok=True)
with open(game_subfile.parent / patch_name, "wb") as file: with open(game_subfile, "wb") as file:
file.write(patch_content.read()) file.write(patch_content.read())
# else raise an error # else raise an error