1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-07 17:00:23 +08:00

better error handling

This commit is contained in:
Escartem
2025-01-07 14:42:02 +01:00
parent 982bf81c27
commit f28afbb87c
5 changed files with 27 additions and 16 deletions

View File

@@ -220,7 +220,7 @@ def extract_sector(section_size, is_sounds, is_externals, ext, endianness, lang_
bnk_data = reader.ReadBytes(size)
reader.SetBufferPos(pos)
wems = bnk2wem(bnk_data)
wems = bnk2wem(bnk_data, f"{filename}@{pos}.{size}")
for wem in wems:
wwise_data.append([f"{os.path.basename(name).split('.')[0]}_{wem[0]}.wem", offset+wem[1], wem[2], filename])