sysOpenPack

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

packPath String
password String

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.

Example

Example.bam
; No example implemented yet