Opens and decrypts a BambooBasic asset pack file (.bbpk).
Takes packPath (path to .bbpk file), password (decryption password).
Returns the path to the temporary directory containing extracted files, or an empty string on failure.
System
Parameters & Returns
Parameters
packPathString
passwordString
Returns
String
Quick Summary
Opens and decrypts a BambooBasic asset pack file (.bbpk).
Takes packPath (path to .bbpk file), password (decryption password).
Returns the path to the temporary directory containing extracted files, or an empty string on failure.
Technical Exegesis...
Opens an encrypted BambooBasic asset pack file, validates the password, and extracts all files to a temporary directory. Returns the path to the temporary directory on success, or an empty string on failure (file not found, wrong password, invalid format).
The .bbpk format uses "BBPK" magic header, AES-256 CBC encryption with password-derived key, and stores multiple files with directory structure. Validates password using "BBPKVALID" validation block before extraction.
Opens an encrypted BambooBasic asset pack file, validates the password, and extracts all files to a temporary directory. Returns the path to the temporary directory on success, or an empty string on failure (file not found, wrong password, invalid format).
The .bbpk format uses "BBPK" magic header, AES-256 CBC encryption with password-derived key, and stores multiple files with directory structure. Validates password using "BBPKVALID" validation block before extraction. Creates a random-named temp folder and decrypts all files into it. Must call sysClosePack when done to clean up. Useful for protecting game assets.