From 8738a720c9fbe73478efbfe79ff697919941d2c0 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Tue, 8 Aug 2023 00:46:59 -0500 Subject: [PATCH] Update ToolsTOR.py formatting --- pythonlib/games/ToolsTOR.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonlib/games/ToolsTOR.py b/pythonlib/games/ToolsTOR.py index f741890..203f65b 100644 --- a/pythonlib/games/ToolsTOR.py +++ b/pythonlib/games/ToolsTOR.py @@ -315,6 +315,7 @@ class ToolsTOR(ToolsTales): return pointers_offset, texts_offset + #Convert a bytes object to text using TAGS and TBL in the json file def bytes_to_text(self, src: FileIO, offset: int = -1) -> str: finalText = "" @@ -389,7 +390,8 @@ class ToolsTOR(ToolsTales): return finalText - def get_node_bytes(self, entry_node): + + def get_node_bytes(self, entry_node) -> bytes: #Grab the fields from the Entry in the XML status = entry_node.find("Status").text @@ -492,6 +494,7 @@ class ToolsTOR(ToolsTales): return file_data + # Extract the file DAT.BIN to the different directorties def extract_main_archive(self) -> None: dat_bin_path = self.paths["extracted_files"] / "DAT"