diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-15 11:48:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 11:48:09 +0200 |
commit | 8e764fc8fb2adcc4c1e7fc9895133fc1a23b2fba (patch) | |
tree | 8f43ab1f58a6b0fe35bdc472aae0fa9342e69be0 /launcher/InstanceImportTask.cpp | |
parent | 31988f0529f6c316d6a9ba3e66cf981a807ed710 (diff) | |
parent | 4745ed28186f46de60de155826c8f2bfb54f45cb (diff) | |
download | PrismLauncher-8e764fc8fb2adcc4c1e7fc9895133fc1a23b2fba.tar.gz PrismLauncher-8e764fc8fb2adcc4c1e7fc9895133fc1a23b2fba.tar.bz2 PrismLauncher-8e764fc8fb2adcc4c1e7fc9895133fc1a23b2fba.zip |
Merge pull request #4 from flowln/modrinth_pack
Diffstat (limited to 'launcher/InstanceImportTask.cpp')
-rw-r--r-- | launcher/InstanceImportTask.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index ec0f58e0..29e3a26c 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -504,16 +504,16 @@ void InstanceImportTask::processModrinth() { QJsonObject hashes = Json::requireObject(obj, "hashes"); QString hash; QCryptographicHash::Algorithm hashAlgorithm; - hash = Json::ensureString(hashes, "sha256"); - hashAlgorithm = QCryptographicHash::Sha256; + hash = Json::ensureString(hashes, "sha1"); + hashAlgorithm = QCryptographicHash::Sha1; if (hash.isEmpty()) { hash = Json::ensureString(hashes, "sha512"); hashAlgorithm = QCryptographicHash::Sha512; if (hash.isEmpty()) { - hash = Json::ensureString(hashes, "sha1"); - hashAlgorithm = QCryptographicHash::Sha1; + hash = Json::ensureString(hashes, "sha256"); + hashAlgorithm = QCryptographicHash::Sha256; if (hash.isEmpty()) { throw JSONValidationError("No hash found for: " + file.path); |