From 06cd89dc01b6dba1e76caec5b3063d3bfebd5c63 Mon Sep 17 00:00:00 2001 From: Stewie Date: Mon, 15 Aug 2022 12:56:58 -0400 Subject: [PATCH] Adding destination parameter to the function --- ToolsTOR.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ToolsTOR.py b/ToolsTOR.py index 851e49b..8eb552b 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -281,14 +281,13 @@ class ToolsTOR(ToolsTales): final_text = english_text or japanese_text or '' else: final_text = japanese_text or '' - - + #Convert the text values to bytes using TBL, TAGS, COLORS, ... bytes_entry = self.text_to_bytes(final_text) return bytes_entry - def get_New_Theirsce(self, theirsce, scpk_file_name): + def get_New_Theirsce(self, theirsce, scpk_file_name, destination): #To store the new text_offset and pointers to update new_text_offsets = dict() @@ -296,10 +295,9 @@ class ToolsTOR(ToolsTales): #Grab strings_offset for pointers theirsce.read(12) strings_offset = struct.unpack("