diff options
author | flow <thiagodonato300@gmail.com> | 2022-05-06 12:42:01 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-05-23 14:43:31 -0300 |
commit | 59d628208b403bfb2442291cbca139cbdfcd325f (patch) | |
tree | 8d51c3ee5817520d37e8acc3d18134906285d8a3 /launcher/modplatform/ModIndex.h | |
parent | 5c5699bba5ed2a5befb7c3f8d9fbcd679a8698ab (diff) | |
download | PrismLauncher-59d628208b403bfb2442291cbca139cbdfcd325f.tar.gz PrismLauncher-59d628208b403bfb2442291cbca139cbdfcd325f.tar.bz2 PrismLauncher-59d628208b403bfb2442291cbca139cbdfcd325f.zip |
feat: allow trying to use multiple hash types
Diffstat (limited to 'launcher/modplatform/ModIndex.h')
-rw-r--r-- | launcher/modplatform/ModIndex.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/modplatform/ModIndex.h b/launcher/modplatform/ModIndex.h index 2137f616..8ada1fc6 100644 --- a/launcher/modplatform/ModIndex.h +++ b/launcher/modplatform/ModIndex.h @@ -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; }; |