diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-07-10 16:42:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 16:42:38 +0100 |
commit | 9aedb5afffdda7db1b614f4f17ac5901b467d69d (patch) | |
tree | d31218b810e5219353137db7615247ba4fde1888 /launcher/modplatform/modrinth | |
parent | 91c9082d19b957c3295e7a0b5bc6add71e6459b8 (diff) | |
parent | d53d58a5d42684c5151680016f38a0f4bd1c0298 (diff) | |
download | PrismLauncher-9aedb5afffdda7db1b614f4f17ac5901b467d69d.tar.gz PrismLauncher-9aedb5afffdda7db1b614f4f17ac5901b467d69d.tar.bz2 PrismLauncher-9aedb5afffdda7db1b614f4f17ac5901b467d69d.zip |
Merge pull request #1334 from TheKodeToad/litemod-dl
LiteMod downloading
Diffstat (limited to 'launcher/modplatform/modrinth')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthAPI.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h index e83ed2bf..58af14cc 100644 --- a/launcher/modplatform/modrinth/ModrinthAPI.h +++ b/launcher/modplatform/modrinth/ModrinthAPI.h @@ -38,7 +38,7 @@ class ModrinthAPI : public NetworkResourceAPI { static auto getModLoaderStrings(const ModLoaderTypes types) -> const QStringList { QStringList l; - for (auto loader : { Forge, Fabric, Quilt }) { + for (auto loader : { Forge, Fabric, Quilt, LiteLoader }) { if (types & loader) { l << getModLoaderString(loader); } @@ -92,7 +92,7 @@ class ModrinthAPI : public NetworkResourceAPI { { if (args.loaders.has_value()) { if (!validateModLoaders(args.loaders.value())) { - qWarning() << "Modrinth only have Forge and Fabric-compatible mods!"; + qWarning() << "Modrinth - or our interface - does not support any the provided mod loaders!"; return {}; } } @@ -141,7 +141,7 @@ class ModrinthAPI : public NetworkResourceAPI { return s.isEmpty() ? QString() : s; } - inline auto validateModLoaders(ModLoaderTypes loaders) const -> bool { return loaders & (Forge | Fabric | Quilt); } + static inline auto validateModLoaders(ModLoaderTypes loaders) -> bool { return loaders & (Forge | Fabric | Quilt | LiteLoader); } [[nodiscard]] std::optional<QString> getDependencyURL(DependencySearchArgs const& args) const override { |