From 2e5ec5aba871ec87ff3f5a27a5b28609f20df9ef Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Thu, 27 Jul 2023 22:02:02 -0500 Subject: [PATCH] Update ToolsTOR.py path meme --- pythonlib/games/ToolsTOR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index 8e69b0f..556e071 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -543,7 +543,7 @@ class ToolsTOR(ToolsTales): self.clean_folder(dat_bin_path) print("Extracting DAT.BIN files...") - with open( self.dat_bin_original, "rb") as f: + with open(self.paths["original_files"] / "DAT.BIN", "rb") as f: for i, (offset, size) in enumerate(tqdm(self.get_datbin_file_data(), desc="Extracting files", unit="file")): # Ignore 0 byte files @@ -702,7 +702,7 @@ class ToolsTOR(ToolsTales): # Overlay whatever we have compiled file_list: dict[int, Path] = {} - for file in self.paths["patched_temp"].glob("*/*"): + for file in self.paths["temp_files"].glob("*/*"): file_index = int(file.name[:5]) file_list[file_index] = file