Update ToolsTOR.py

formatting
This commit is contained in:
Mc-muffin
2023-08-08 00:46:59 -05:00
parent 7ec521ab9d
commit 8738a720c9

View File

@@ -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"