aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-06-16 11:45:29 -0300
committerflow <flowlnlnln@gmail.com>2022-07-17 11:33:43 -0300
commit4e6978ff6f61777a2e2e989cba58a9f0c48d2782 (patch)
tree5012e97ff9f9ba28d41e926abce1b05a8a2e3cdb /launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
parent91a5c4bdcbd3ae18139b85899f051fb3d9cbd1fc (diff)
downloadPrismLauncher-4e6978ff6f61777a2e2e989cba58a9f0c48d2782.tar.gz
PrismLauncher-4e6978ff6f61777a2e2e989cba58a9f0c48d2782.tar.bz2
PrismLauncher-4e6978ff6f61777a2e2e989cba58a9f0c48d2782.zip
feat: improve metadata gen. networking and performance
This makes the metadata generation code a lot messier and harder to use, but there's not really much else that can be done about it while preserving all it's capabilities :( At least we now have speed Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
index 981c4216..78275cf0 100644
--- a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
+++ b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
@@ -88,7 +88,9 @@ void ModrinthCheckUpdate::executeTask()
qDebug() << "Mod " << mappings.find(hash).value().name() << " got an empty response.";
qDebug() << "Hash: " << hash;
- emit checkFailed(mappings.find(hash).value(), tr("Couldn't find the latest version of this mod with the correct mod loader and game version."));
+ emit checkFailed(
+ mappings.find(hash).value(),
+ tr("No valid version found for this mod. It's probably unavailable for the current game version / mod loader."));
continue;
}
@@ -134,6 +136,7 @@ void ModrinthCheckUpdate::executeTask()
// Fake pack with the necessary info to pass to the download task :)
ModPlatform::IndexedPack pack;
pack.name = mod.name();
+ pack.slug = mod.metadata()->slug;
pack.addonId = mod.metadata()->project_id;
pack.websiteUrl = mod.homeurl();
for (auto& author : mod.authors())