pub fn save_mods_state(
mods_dir: &Path,
state: &ModsState,
) -> Result<(), HookConfigError>Expand description
Writes state to <mods_dir>/mods.json, creating mods_dir if
it doesn’t exist yet.
§Errors
Returns an error if mods_dir can’t be created or the file can’t be
written.