Merge pull request #634 from flowln/donate_links
More links for CF / Modrinth mods / modpacks
This commit is contained in:
@ -44,6 +44,12 @@ struct ModpackAuthor {
|
||||
QString url;
|
||||
};
|
||||
|
||||
struct DonationData {
|
||||
QString id;
|
||||
QString platform;
|
||||
QString url;
|
||||
};
|
||||
|
||||
struct IndexedVersion {
|
||||
QVariant addonId;
|
||||
QVariant fileId;
|
||||
@ -57,6 +63,15 @@ struct IndexedVersion {
|
||||
QString hash;
|
||||
};
|
||||
|
||||
struct ExtraPackData {
|
||||
QList<DonationData> donate;
|
||||
|
||||
QString issuesUrl;
|
||||
QString sourceUrl;
|
||||
QString wikiUrl;
|
||||
QString discordUrl;
|
||||
};
|
||||
|
||||
struct IndexedPack {
|
||||
QVariant addonId;
|
||||
Provider provider;
|
||||
@ -69,6 +84,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