From 70e324c03ac3445f35b425ecd45c1ab5bcffe604 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Sun, 24 Jul 2022 00:32:50 +0200 Subject: [PATCH] fixed MyStuff patcher looking for files at the harddrive root --- source/mkw/ExtractedGame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/mkw/ExtractedGame.py b/source/mkw/ExtractedGame.py index 2fa6244..475d890 100644 --- a/source/mkw/ExtractedGame.py +++ b/source/mkw/ExtractedGame.py @@ -56,9 +56,9 @@ class ExtractedGame: mystuff_rootfiles: dict[str, Path] = {} for mystuff_subpath in mystuff_path.glob("*"): if mystuff_subpath.is_file(): mystuff_rootfiles[mystuff_subpath.name] = mystuff_subpath - else: shutil.copytree(mystuff_subpath, self.path / f"/files/{mystuff_subpath.name}", dirs_exist_ok=True) + else: shutil.copytree(mystuff_subpath, self.path / f"files/{mystuff_subpath.name}", dirs_exist_ok=True) - for game_file in filter(lambda file: file.is_file(), (self.path / "/files/").rglob("*")): + for game_file in filter(lambda file: file.is_file(), (self.path / "files/").rglob("*")): if (mystuff_file := mystuff_rootfiles.get(game_file.name)) is None: continue shutil.copy(mystuff_file, game_file)