From ed548262bb84269806f4de0f6b06d40e2983b9ec Mon Sep 17 00:00:00 2001 From: Stewie Date: Fri, 26 Aug 2022 21:41:11 -0400 Subject: [PATCH] Other modification to extract_files function --- ToolsTOPX.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ToolsTOPX.py b/ToolsTOPX.py index 912e75b..e15ee64 100644 --- a/ToolsTOPX.py +++ b/ToolsTOPX.py @@ -100,19 +100,6 @@ class ToolsTOPX(ToolsTales): self.mkdir('../Data/{}/All/snd/se3/map_mus'.format(self.repo_name)) self.mkdir('../Data/{}/All/snd/strpck'.format(self.repo_name)) self.mkdir('../Data/{}/All/sysdata'.format(self.repo_name)) - - # Extract each of the file from the all.dat - def extract_files(self, start, size, filename): - if filename in self.hashes.keys(): - filename = self.hashes[filename] - input_file = open( self.all_original, 'rb') - input_file.seek(start, 0) - data = input_file.read(size) - output_file = open( os.path.join(self.all_extract, filename), 'wb') - output_file.write(data) - output_file.close() - input_file.close() - # Extract the story files def extract_All_Story(self):