From 62aba6c73a5e807390630f01185a4a132275d93f Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Fri, 28 Jul 2023 08:00:44 -0500 Subject: [PATCH] Update ToolsTOR.py Fix story packing --- pythonlib/games/ToolsTOR.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index 1c48665..b66eb04 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -770,11 +770,11 @@ class ToolsTOR(ToolsTales): def pack_all_story(self): print("Recreating Story files...") - - # TODO: use pathlib for everything - out_path = Path(self.story_XML_patch) / "New" - xml_path = Path(self.story_XML_new) / "XML" - scpk_path = Path(self.dat_archive_extract) / "SCPK" + + out_path = self.paths["temp_files"] / "DAT" / "SCPK" + out_path.mkdir(parents=True, exist_ok=True) + xml_path = self.paths["story_xml"] + scpk_path = self.paths["extracted_files"] / "DAT" / "SCPK" for file in (pbar:= tqdm(list(scpk_path.glob("*.scpk")))): pbar.set_description_str(file.name)