Skip to main content

writable_file

Function writable_file 

Source
fn writable_file<'a>(
    packs: &'a mut BTreeMap<String, Pack>,
    dependencies: &'a mut Dependencies,
    file: &FileRef,
) -> Result<&'a mut RFile>
Expand description

Returns a file of an open pack, the game files or the parent packs, mutably.

§Errors

Fails if the file doesn’t exist, or if it’s an Assembly Kit table, which isn’t stored as a file.