Skip to main content

extract_natives

Function extract_natives 

Source
pub async fn extract_natives(
    options: &LaunchOptions,
    version_json: &MinecraftVersionJson,
    bundle: &[AssetItem],
) -> Result<(), LaunchError>
Expand description

Extract all native JARs in bundle (NativeAsset items) into the directory that the version’s -Djava.library.path points to (see natives_dir_for).

Skips META-INF/ entries; sets executable bit on Unix (0o755). Uses spawn_blocking so the synchronous zip operations don’t block the Tokio runtime.