Пример #1
0
        public ModFile GetCurseForgeModFile(string modName, string fileId, string fileHash)
        {
            ModFile mod = GetCurseForgeModFile(modName, fileId);

            mod.Hash = fileHash;
            return(mod);
        }
Пример #2
0
 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));
 }