feat: add donate links for modrinth mods

This commit is contained in:
flow
2022-05-24 09:38:48 -03:00
parent 3cc26b15a1
commit ca3c6c5e8a
14 changed files with 151 additions and 23 deletions

View File

@ -13,6 +13,12 @@ struct ModpackAuthor {
QString url;
};
struct DonationData {
QString id;
QString platform;
QString url;
};
struct IndexedVersion {
QVariant addonId;
QVariant fileId;
@ -24,6 +30,10 @@ struct IndexedVersion {
QVector<QString> loaders = {};
};
struct ExtraPackData {
QList<DonationData> donate;
};
struct IndexedPack {
QVariant addonId;
QString name;
@ -35,6 +45,10 @@ struct IndexedPack {
bool versionsLoaded = false;
QVector<IndexedVersion> versions;
// Don't load by default, since some modplatform don't have that info
bool extraDataLoaded = true;
ExtraPackData extraData;
};
} // namespace ModPlatform