Skip to main content

decode_bundle_files

Function decode_bundle_files 

Source
pub fn decode_bundle_files(
    bundle_json: &str,
) -> Result<HashMap<String, Vec<u8>>>
Expand description

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

Accepts the full game.bundle.json ({ "dotzuki": …, "files": … }) or a bare { path: base64 } files map.

§Errors

Fails when the JSON is malformed, when neither shape yields a path → base64-string object, or when a value is not valid base64 (the error names the offending file).