public ModFile GetCurseForgeModFile(string modName, string fileId, string fileHash) { ModFile mod = GetCurseForgeModFile(modName, fileId); mod.Hash = fileHash; return(mod); }
private async Task <bool> checkDownloadRequireAsync(MinecraftPath path, ModFile mod) { return(!string.IsNullOrEmpty(mod.Url) && !string.IsNullOrEmpty(mod.Path) && !await IOUtil.CheckFileValidationAsync(Path.Combine(path.BasePath, mod.Path), mod.Hash, CheckHash).ConfigureAwait(false)); }