diff options
author | timoreo22 <timo.oreo34@gmail.com> | 2022-05-28 21:53:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-28 21:53:12 +0200 |
commit | 699ad316f0d90580fa13d570d6c25aff903a470d (patch) | |
tree | babd9f2ac493e4f47882ca36c5c08c563d697f91 /launcher/modplatform/flame/PackManifest.h | |
parent | fcbe233fdb79214479820eb8f0489351143b4036 (diff) | |
download | PrismLauncher-699ad316f0d90580fa13d570d6c25aff903a470d.tar.gz PrismLauncher-699ad316f0d90580fa13d570d6c25aff903a470d.tar.bz2 PrismLauncher-699ad316f0d90580fa13d570d6c25aff903a470d.zip |
Rework curseforge download (#611)
* Use the bulk endpoint on mod resolution for faster download
* Search on modrinth for api blocked mods
* Display a dialog for manually downloading blocked mods
Diffstat (limited to 'launcher/modplatform/flame/PackManifest.h')
-rw-r--r-- | launcher/modplatform/flame/PackManifest.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/launcher/modplatform/flame/PackManifest.h b/launcher/modplatform/flame/PackManifest.h index 02f39f0e..26a48d1c 100644 --- a/launcher/modplatform/flame/PackManifest.h +++ b/launcher/modplatform/flame/PackManifest.h @@ -2,19 +2,24 @@ #include <QString> #include <QVector> +#include <QMap> #include <QUrl> +#include <QJsonObject> namespace Flame { struct File { // NOTE: throws JSONValidationError - bool parseFromBytes(const QByteArray &bytes); + bool parseFromObject(const QJsonObject& object); int projectId = 0; int fileId = 0; // NOTE: the opposite to 'optional'. This is at the time of writing unused. bool required = true; + QString hash; + // NOTE: only set on blocked files ! Empty otherwise. + QString websiteUrl; // our bool resolved = false; @@ -54,7 +59,8 @@ struct Manifest QString name; QString version; QString author; - QVector<Flame::File> files; + //File id -> File + QMap<int,Flame::File> files; QString overrides; }; |