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

@ -16,7 +16,9 @@ enum class Provider {
class ProviderCapabilities {
public:
auto name(Provider) -> const char*;
auto hashType(Provider) -> QString;
auto readableName(Provider) -> QString;
auto hashType(Provider) -> QStringList;
auto hash(Provider, QByteArray&, QString type = "") -> QByteArray;
};
struct ModpackAuthor {
@ -33,6 +35,7 @@ struct IndexedVersion {
QString date;
QString fileName;
QVector<QString> loaders = {};
QString hash_type;
QString hash;
};