Undo single-event error

This commit is contained in:
Mc-muffin
2024-09-17 20:49:08 -05:00
parent 4ce028b4df
commit cb8eaa1446

View File

@@ -1028,7 +1028,7 @@ class ToolsTOR(ToolsTales):
comp_type = re.search(self.VALID_FILE_NAME, pak_path.name).group(2)
if file.parent.stem == "PAK0":
pak_path = original_files / "PAK0" / (file.name + ".pak0")
pak_o = Pak.from_path(pak_path, 1)
pak_o = Pak.from_path(pak_path, 0)
for pak_file in file.glob("*.bin"):
file_index = int(pak_file.name.split(".bin")[0])
with open(pak_file, "rb") as pf: