feat: add donate links for modrinth mods
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user