mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-05 07:50:23 +08:00
release file after extraction
This commit is contained in:
@@ -12,7 +12,8 @@ def extract(input_file, output_folder):
|
||||
global bank_version
|
||||
global reader
|
||||
|
||||
reader = FileReader(open(input_file, "rb"), "little") # defaults to little endian
|
||||
file = open(input_file, "rb")
|
||||
reader = FileReader(file, "little") # defaults to little endian
|
||||
|
||||
# check file
|
||||
if reader.ReadBytes(4) != b"AKPK":
|
||||
@@ -59,6 +60,9 @@ def extract(input_file, output_folder):
|
||||
print("can't detect bank version")
|
||||
bank_version = 62
|
||||
|
||||
# close
|
||||
file.close()
|
||||
|
||||
def get_langs(langs_sector_size):
|
||||
string_offset = reader.GetBufferPos()
|
||||
lang_array = {}
|
||||
|
||||
Reference in New Issue
Block a user