aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-06-04 16:22:46 -0300
committerflow <flowlnlnln@gmail.com>2022-07-17 11:33:42 -0300
commit6e2869834f59ae4863e63a16de97aa3019723b26 (patch)
treed92e2a0d324c0a328e92c59a6146ae07d7920b1d /launcher/modplatform/modrinth
parentb8b71c7dd29fbdc6c98d60ec54c57cff74f4cbfd (diff)
downloadPrismLauncher-6e2869834f59ae4863e63a16de97aa3019723b26.tar.gz
PrismLauncher-6e2869834f59ae4863e63a16de97aa3019723b26.tar.bz2
PrismLauncher-6e2869834f59ae4863e63a16de97aa3019723b26.zip
feat: add mod update dialog
This subclasses the Review mods dialog to make a "Update review" one. Also, all the necessary components built until now are put together in a coherent unity that checks and generates metadata on-the-fly and checks for mod updates, while giving and receiving feedback to the user. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth')
-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 81a2652a..981c4216 100644
--- a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
+++ b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
@@ -81,11 +81,14 @@ void ModrinthCheckUpdate::executeTask()
try {
for (auto hash : mappings.keys()) {
auto project_obj = doc[hash].toObject();
+
+ // If the returned project is empty, but we have Modrinth metadata,
+ // it means this specific version is not available
if (project_obj.isEmpty()) {
qDebug() << "Mod " << mappings.find(hash).value().name() << " got an empty response.";
qDebug() << "Hash: " << hash;
- emit checkFailed(mappings.find(hash).value(), tr("Couldn't find mod in Modrinth"));
+ emit checkFailed(mappings.find(hash).value(), tr("Couldn't find the latest version of this mod with the correct mod loader and game version."));
continue;
}