diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-24 20:04:56 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-24 20:04:56 +0300 |
commit | 81c1a951665962d066a9b51a16f219ff4b160b4e (patch) | |
tree | a482e2fce09c07290bdd81f2777b059995e98c9b /launcher/modplatform/modrinth/ModrinthPackExportTask.cpp | |
parent | f825d7753afd6c00111c9ff9deedeee8ded5b27a (diff) | |
parent | bcf45c74a1b0b3389c05927637bf8aa95b8e43cf (diff) | |
download | PrismLauncher-81c1a951665962d066a9b51a16f219ff4b160b4e.tar.gz PrismLauncher-81c1a951665962d066a9b51a16f219ff4b160b4e.tar.bz2 PrismLauncher-81c1a951665962d066a9b51a16f219ff4b160b4e.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curse
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackExportTask.cpp')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackExportTask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp index dd748687..a9a1f1c4 100644 --- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp +++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp @@ -136,8 +136,8 @@ void ModrinthPackExportTask::collectHashes() QCryptographicHash sha1(QCryptographicHash::Algorithm::Sha1); sha1.addData(data); - ResolvedFile file{ sha1.result().toHex(), sha512.result().toHex(), url.toString(), openFile.size() }; - resolvedFiles[relative] = file; + ResolvedFile resolvedFile{ sha1.result().toHex(), sha512.result().toHex(), url.toEncoded(), openFile.size() }; + resolvedFiles[relative] = resolvedFile; // nice! we've managed to resolve based on local metadata! // no need to enqueue it |