aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/flame/FlamePackIndex.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-26 16:23:43 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-26 16:23:43 -0700
commitcf4df19986fe53357ef04b2a4407f69a2f4fa196 (patch)
tree2750dc9c35dd98fee709db4ab2b2d87280b54994 /launcher/modplatform/flame/FlamePackIndex.cpp
parentc15603406907383c58786cb1dc235ac79c7f9626 (diff)
downloadPrismLauncher-cf4df19986fe53357ef04b2a4407f69a2f4fa196.tar.gz
PrismLauncher-cf4df19986fe53357ef04b2a4407f69a2f4fa196.tar.bz2
PrismLauncher-cf4df19986fe53357ef04b2a4407f69a2f4fa196.zip
feat: display release type
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform/flame/FlamePackIndex.cpp')
-rw-r--r--launcher/modplatform/flame/FlamePackIndex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/modplatform/flame/FlamePackIndex.cpp b/launcher/modplatform/flame/FlamePackIndex.cpp
index ad48b7b6..e643c96b 100644
--- a/launcher/modplatform/flame/FlamePackIndex.cpp
+++ b/launcher/modplatform/flame/FlamePackIndex.cpp
@@ -90,6 +90,7 @@ void Flame::loadIndexedPackVersions(Flame::IndexedPack& pack, QJsonArray& arr)
// pick the latest version supported
file.mcVersion = versionArray[0].toString();
file.version = Json::requireString(version, "displayName");
+ file.version_type = ModPlatform::IndexedVersionType(Json::requireInteger(version, "releaseType"));
file.downloadUrl = Json::ensureString(version, "downloadUrl");
// only add if we have a download URL (third party distribution is enabled)