feat: allow trying to use multiple hash types

This commit is contained in:
flow
2022-05-06 12:42:01 -03:00
committed by flow
parent 5c5699bba5
commit 59d628208b
5 changed files with 68 additions and 19 deletions

View File

@ -29,7 +29,7 @@ auto V1::createModFormat(QDir& index_dir, ModPlatform::IndexedPack& mod_pack, Mo
mod.filename = mod_version.fileName;
mod.url = mod_version.downloadUrl;
mod.hash_format = ProviderCaps.hashType(mod_pack.provider);
mod.hash_format = mod_version.hash_type;
mod.hash = mod_version.hash;
mod.provider = mod_pack.provider;