1
0
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:
Escartem
2023-10-20 11:03:19 +02:00
parent 4feeb907aa
commit 73a5a6bec9

View File

@@ -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 = {}