Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.06 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.06 KB

acbpy

acbpy is simple acb extraction library working on Python3.
It contains functions and simple command line tool for parse acb format file.
This library is wrapper library of acb.py.

install

pip3 install git+ssh://git@github.com/Cryptomelone/acbpy.git

usage

command line

acbpy target_file [extract dir]

import

import acbpy

with open("target_file.acb", "rb") as f:
    for i in acbpy.parse_binary(f):
        print(i.track.name)
        with open(f"{i.track.name}.{i.extension}", "wb") as s:
            s.write(i.binary.read())

models

  • track_t (from acb.py)

    • cue_id: int
    • name: str
    • wav_id: int
    • enc_type: int
    • is_stream: int
  • Acb (original)

    • track: track_t
    • binary: io.BytesIO
    • extension: str

test

python3 setup.py test

license

follows: acb.py