get_enabled_mods

Function get_enabled_mods 

Source
pub fn get_enabled_mods(
    dir: impl AsRef<Path>,
) -> Result<EnabledMods, ThermiteError>
Expand description

Get enabledmods.json from the given directory, if it exists

ยงErrors

  • The path cannot be canonicalized (broken symlinks)
  • The path is not a directory
  • There is no enabledmods.json file in the provided directory