This commit is contained in:
Trial97 2023-06-24 20:04:56 +03:00
commit 81c1a95166
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
26 changed files with 729 additions and 69 deletions

View file

@ -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