Skip to main content

dump_renderer_data

Function dump_renderer_data 

Source
pub fn dump_renderer_data(
    game_dir: &Path,
    build: u32,
    version_str: &str,
    output_base: &Path,
    progress: Option<&ProgressBar>,
    allow_existing: bool,
) -> Result<(), Report>
Expand description

Dump game data with content-addressed deduplication.

VFS files are stored in {output_base}/common/ by hash, with symlinks in the build’s vfs/ directory. Non-VFS files (game_params.rkyv, translations) are stored directly in the build directory.

When progress is Some, a CLI progress bar is updated during extraction. When allow_existing is true and a complete dump already exists, returns immediately.