1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00
This commit is contained in:
Escartem
2024-07-26 23:57:32 +02:00
parent a063b74835
commit 6f5406eba0
2 changed files with 1 additions and 3 deletions

3
bnk.py
View File

@@ -3,7 +3,7 @@ import io
from filereader import FileReader
def bnk2wem(data):
# gets raws data from object
# gets raw data from object
reader = FileReader(io.BytesIO(data), "little")
bkhd_signature = reader.ReadBytes(4)
@@ -30,7 +30,6 @@ def bnk2wem(data):
wem_id = reader.ReadUInt32()
wem_offset = reader.ReadUInt32()
wem_size = reader.ReadUInt32()
wem = [wem_id, wem_offset, wem_size]
wems.append([wem_id, wem_offset, wem_size])
data_signature = reader.ReadBytes(4)

View File

@@ -215,7 +215,6 @@ def extract_sector(section_size, is_sounds, is_externals, ext, endianness, lang_
# file infos
if ext == "bnk":
# get data from bnk
print(offset)
pos = reader.GetBufferPos()
reader.SetBufferPos(offset)
bnk_data = reader.ReadBytes(size)