aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-05-14 21:47:35 -0300
committerflow <thiagodonato300@gmail.com>2022-05-14 21:47:35 -0300
commit9899a0e098e5cfb76a754fa9da2f73be46cc880a (patch)
tree68d5f64fb5617e0cda07b67889894b3a867be9a6 /launcher/modplatform/modrinth
parent5ea8cec16f6dfbaeaca56ccf7f9151039a1dd145 (diff)
downloadPrismLauncher-9899a0e098e5cfb76a754fa9da2f73be46cc880a.tar.gz
PrismLauncher-9899a0e098e5cfb76a754fa9da2f73be46cc880a.tar.bz2
PrismLauncher-9899a0e098e5cfb76a754fa9da2f73be46cc880a.zip
fix: Have the URL be the project URL itself
(I think, doesn't seem to work for the waffle though, probably because of the staging API :/)
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackManifest.cpp1
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackManifest.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackManifest.cpp b/launcher/modplatform/modrinth/ModrinthPackManifest.cpp
index 4dcd2fd4..4b8a9a9b 100644
--- a/launcher/modplatform/modrinth/ModrinthPackManifest.cpp
+++ b/launcher/modplatform/modrinth/ModrinthPackManifest.cpp
@@ -35,6 +35,7 @@ void loadIndexedPack(Modpack& pack, QJsonObject& obj)
void loadIndexedInfo(Modpack& pack, QJsonObject& obj)
{
pack.extra.body = Json::ensureString(obj, "body");
+ pack.extra.projectUrl = QString("https://modrinth.com/modpack/%1").arg(Json::ensureString(obj, "slug"));
pack.extra.sourceUrl = Json::ensureString(obj, "source_url");
pack.extra.wikiUrl = Json::ensureString(obj, "wiki_url");
diff --git a/launcher/modplatform/modrinth/ModrinthPackManifest.h b/launcher/modplatform/modrinth/ModrinthPackManifest.h
index 7dab893c..aaaacf2c 100644
--- a/launcher/modplatform/modrinth/ModrinthPackManifest.h
+++ b/launcher/modplatform/modrinth/ModrinthPackManifest.h
@@ -39,6 +39,7 @@ struct File
struct ModpackExtra {
QString body;
+ QString projectUrl;
QString sourceUrl;
QString wikiUrl;
};