pub fn load_api(factorio_dir: &Path) -> Result<Api>