Skip to main content

loaded_files_by_paths

Function loaded_files_by_paths 

Source
fn loaded_files_by_paths(
    pack: &Pack,
    paths: &[ContainerPath],
) -> (Vec<RFile>, Vec<String>, Option<String>)
Expand description

Returns copies of the files of a pack at the provided paths, with their data loaded in memory.

Files that fail to load are not copied, as unloaded copies would fail once the source pack changes on disk. Their paths are returned after the copies, with the last error found loading them.