diff options
author | flow <flowlnlnln@gmail.com> | 2022-06-03 20:45:44 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-07-17 11:33:42 -0300 |
commit | c3f6c3dd8228b23b403af6b091a888ea3cc436ca (patch) | |
tree | f7ed9324ef36db1f774b00ba22a5dbc289d416cd /launcher/modplatform/modrinth | |
parent | 844b2457769d61131f97b5e82bb134568dfd42ed (diff) | |
download | PrismLauncher-c3f6c3dd8228b23b403af6b091a888ea3cc436ca.tar.gz PrismLauncher-c3f6c3dd8228b23b403af6b091a888ea3cc436ca.tar.bz2 PrismLauncher-c3f6c3dd8228b23b403af6b091a888ea3cc436ca.zip |
feat: add changelog to mod providers
The Modrinth changelog is fairly straight-forward, as it's given to us
directly with the API call we already did. Flame, on the other hand,
requires us to do another call to get the changelog, so it can introduce
quite a heavy performance impact. This way, we make it optional to get
such changelog.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackIndex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp index 4e738819..9736e861 100644 --- a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp +++ b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp @@ -130,6 +130,7 @@ auto Modrinth::loadIndexedPackVersion(QJsonObject &obj, QString preferred_hash_t file.loaders.append(loader.toString()); } file.version = Json::requireString(obj, "name"); + file.changelog = Json::requireString(obj, "changelog"); auto files = Json::requireArray(obj, "files"); int i = 0; |