aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-06-09 19:54:50 -0300
committerflow <flowlnlnln@gmail.com>2022-06-09 19:54:50 -0300
commit1b878030aaba832ab416786c5f0dbc69da0e2166 (patch)
tree2f4649fd6a9389d0f838892c5d5f2bd903adb7bc /launcher/modplatform
parent46e403b20b8f14269aebc163f2bc481d3dea43c5 (diff)
downloadPrismLauncher-1b878030aaba832ab416786c5f0dbc69da0e2166.tar.gz
PrismLauncher-1b878030aaba832ab416786c5f0dbc69da0e2166.tar.bz2
PrismLauncher-1b878030aaba832ab416786c5f0dbc69da0e2166.zip
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!)
Diffstat (limited to 'launcher/modplatform')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackManifest.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackManifest.h b/launcher/modplatform/modrinth/ModrinthPackManifest.h
index e5fc9a70..b2083f57 100644
--- a/launcher/modplatform/modrinth/ModrinthPackManifest.h
+++ b/launcher/modplatform/modrinth/ModrinthPackManifest.h
@@ -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 {