diff options
author | flow <flowlnlnln@gmail.com> | 2022-07-19 11:50:38 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-08-01 07:33:30 -0300 |
commit | 368a0ddd4489705ac4823d8d9dbb2409fa1d0fa4 (patch) | |
tree | 02980d4353d199d5060d9a611ac28b767aae697d /launcher/modplatform/flame/FlameModIndex.cpp | |
parent | 0808a10b7b9b9cde808a62b7d617b5c7010c24cf (diff) | |
download | PrismLauncher-368a0ddd4489705ac4823d8d9dbb2409fa1d0fa4.tar.gz PrismLauncher-368a0ddd4489705ac4823d8d9dbb2409fa1d0fa4.tar.bz2 PrismLauncher-368a0ddd4489705ac4823d8d9dbb2409fa1d0fa4.zip |
feat: add mod descriptions to CF mods
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/flame/FlameModIndex.cpp')
-rw-r--r-- | launcher/modplatform/flame/FlameModIndex.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/launcher/modplatform/flame/FlameModIndex.cpp b/launcher/modplatform/flame/FlameModIndex.cpp index 746018e2..26187358 100644 --- a/launcher/modplatform/flame/FlameModIndex.cpp +++ b/launcher/modplatform/flame/FlameModIndex.cpp @@ -4,10 +4,9 @@ #include "minecraft/MinecraftInstance.h" #include "minecraft/PackProfile.h" #include "modplatform/flame/FlameAPI.h" -#include "net/NetJob.h" -static ModPlatform::ProviderCapabilities ProviderCaps; static FlameAPI api; +static ModPlatform::ProviderCapabilities ProviderCaps; void FlameMod::loadIndexedPack(ModPlatform::IndexedPack& pack, QJsonObject& obj) { @@ -50,6 +49,8 @@ void FlameMod::loadExtraPackData(ModPlatform::IndexedPack& pack, QJsonObject& ob if(pack.extraData.wikiUrl.endsWith('/')) pack.extraData.wikiUrl.chop(1); + pack.extraData.body = api.getModDescription(pack.addonId.toInt()); + pack.extraDataLoaded = true; } |