From 43018abdca405568cb2214e0f3c068d51054dcb1 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Sat, 16 Jul 2022 22:17:56 +0200 Subject: [PATCH] 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) --- source/mkw/Patch/PatchFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/mkw/Patch/PatchFile.py b/source/mkw/Patch/PatchFile.py index ab06b20..ea602ac 100644 --- a/source/mkw/Patch/PatchFile.py +++ b/source/mkw/Patch/PatchFile.py @@ -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