diff options
author | OldWorldOrdr <joey.t.reinhart@gmail.com> | 2022-06-20 11:02:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 11:02:40 -0400 |
commit | 6103d86a47039521c3d4c31a4716c1d48962a8f1 (patch) | |
tree | 95112ac7e3a583fc740eec845b2bbc3126a816fb /launcher/modplatform/modrinth/ModrinthPackManifest.h | |
parent | 843c860d98dab5a438374ab136b28d409184ec81 (diff) | |
parent | b8899a534d9679aace828f9c15a9a3083685f680 (diff) | |
download | PrismLauncher-6103d86a47039521c3d4c31a4716c1d48962a8f1.tar.gz PrismLauncher-6103d86a47039521c3d4c31a4716c1d48962a8f1.tar.bz2 PrismLauncher-6103d86a47039521c3d4c31a4716c1d48962a8f1.zip |
Merge branch 'PolyMC:develop' into develop
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackManifest.h')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackManifest.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackManifest.h b/launcher/modplatform/modrinth/ModrinthPackManifest.h index e5fc9a70..035dc62e 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,22 +49,32 @@ 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 DonationData { + QString id; + QString platform; + QString url; }; struct ModpackExtra { QString body; QString projectUrl; + + QString issuesUrl; QString sourceUrl; QString wikiUrl; + QString discordUrl; + + QList<DonationData> donate; + }; struct ModpackVersion { |