Skip to main content

Module bundle

Module bundle 

Source
Expand description

Game bundle decoding: the legacy JSON sibling of the .dzpk pack.

Older dotzuki export builds wrote game.bundle.json as { "dotzuki": {…export metadata…}, "files": { "<path>": "<base64>" } }. Current exports ship a binary .dzpk pack instead (see crate::pack) — base64 inflates assets ~1.33× and costs a full decode on boot. This module stays so players can still boot an old export: decode_bundle_files accepts BOTH shapes — a top-level object with a files object member is unwrapped, anything else must itself be the files map. The dotzuki metadata is informational only.

Functions§

decode_bundle_files
Decode a bundle JSON string into the path → content map a MemoryFiles boots from.