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
2025-01-06 10:04:39 +01:00
parent 970b031f28
commit af1a8ccf9a

View File

@@ -71,12 +71,12 @@ class WwiseExtract:
return self.file_structure
def load_file(self, _input, hdiff, diff_path):
def load_file(self, _input, hdiff, base_path):
with open(_input, "rb") as f:
data = f.read()
f.close()
print(diff_path)
self.get_wems(data, os.path.basename(_input), hdiff, os.path.relpath(_input, start=diff_path))
self.get_wems(data, os.path.basename(_input), hdiff, os.path.relpath(_input, start=base_path))
def get_wems(self, data, filename, hdiff, relpath):
reader = FileReader(io.BytesIO(data), "little")