Version 3.2.0: fast lists with loading spinners, names from the game files, INT docs and screenshots, cleanup
This commit is contained in:
@@ -20,17 +20,6 @@ def load_library(path: str = DEFAULT_LIB) -> list:
|
||||
return [b[offs[i]:offs[i + 1]] for i in range(n - 1)]
|
||||
|
||||
|
||||
def save_library(path: str, books: list):
|
||||
out = bytearray()
|
||||
offs = []
|
||||
for bk in books:
|
||||
offs.append(len(out))
|
||||
out += bk
|
||||
offs.append(len(out)) # table start == end of last book
|
||||
out += struct.pack("<%dI" % len(offs), *offs)
|
||||
open(path, "wb").write(bytes(out))
|
||||
|
||||
|
||||
def wwise_book_to_vorbis(blob: bytes, w: BitWriter):
|
||||
"""Expand a compact Wwise codebook into a standard Vorbis codebook (ww2ogg rebuild)."""
|
||||
r = BitReader(blob)
|
||||
|
||||
Reference in New Issue
Block a user