You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Update ToolsTOR.py
formatting
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user