fix: enable using more than one download url in mrpacks

Kinda, it's ugly and hackish, since we don't have the facilities to
do this properly (yet!)
This commit is contained in:
flow
2022-06-09 19:54:50 -03:00
parent 46e403b20b
commit 1b878030aa
2 changed files with 43 additions and 16 deletions

View File

@ -40,6 +40,7 @@
#include <QByteArray>
#include <QCryptographicHash>
#include <QQueue>
#include <QString>
#include <QUrl>
#include <QVector>
@ -48,14 +49,12 @@ class MinecraftInstance;
namespace Modrinth {
struct File
{
struct File {
QString path;
QCryptographicHash::Algorithm hashAlgorithm;
QByteArray hash;
// TODO: should this support multiple download URLs, like the JSON does?
QUrl download;
QQueue<QUrl> downloads;
};
struct ModpackExtra {