fixed an issue where a .d directory in a Patch would not get his .szs equivalent extracted if the subfile where all at the root level (causing an issue with the MKWF Font patch)

This commit is contained in:
Faraphel 2022-07-16 22:17:56 +02:00
parent f8c04f62a4
commit 43018abdca

View file

@ -35,7 +35,7 @@ class PatchFile(PatchObject):
# check if the path to the game_subpath is inside a szs, and if yes extract it
for szs_subpath in filter(lambda path: path.suffix == ".d",
game_subpath.parent.relative_to(extracted_game.path).parents):
game_subpath.relative_to(extracted_game.path).parents):
szs_path = extracted_game.path / szs_subpath
# if the archive is already extracted, ignore