aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthAPI.h
diff options
context:
space:
mode:
authorIrgendwer01 <67506320+Irgendwer01@users.noreply.github.com>2022-04-15 13:04:25 +0200
committerGitHub <noreply@github.com>2022-04-15 13:04:25 +0200
commitecad388846060f486bc1ae665ffa854d3b867ee1 (patch)
treea946ef393142bf9f4cf6f32842faf44bc0d5c19a /launcher/modplatform/modrinth/ModrinthAPI.h
parent9a120f43c8df3062e34c32b28f3060b95e61249a (diff)
parent4ff1306e0c6c4c1a8c9b3c2ee72f8e7f0aa590dc (diff)
downloadPrismLauncher-ecad388846060f486bc1ae665ffa854d3b867ee1.tar.gz
PrismLauncher-ecad388846060f486bc1ae665ffa854d3b867ee1.tar.bz2
PrismLauncher-ecad388846060f486bc1ae665ffa854d3b867ee1.zip
Merge branch 'PolyMC:develop' into develop
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthAPI.h')
-rw-r--r--launcher/modplatform/modrinth/ModrinthAPI.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h
index 30952e99..eefa4a85 100644
--- a/launcher/modplatform/modrinth/ModrinthAPI.h
+++ b/launcher/modplatform/modrinth/ModrinthAPI.h
@@ -51,23 +51,16 @@ class ModrinthAPI : public NetworkModAPI {
return s;
}
- inline auto getModLoaderString(ModLoaderType modLoader) const -> QString
+ static auto getModLoaderString(ModLoaderType type) -> const QString
{
- switch (modLoader) {
- case Any:
- return "fabric, forge";
- case Forge:
- return "forge";
- case Fabric:
- return "fabric";
- default:
- return "";
- }
+ if (type == Unspecified)
+ return "fabric, forge, quilt";
+ return ModAPI::getModLoaderString(type);
}
inline auto validateModLoader(ModLoaderType modLoader) const -> bool
{
- return modLoader == Any || modLoader == Forge || modLoader == Fabric;
+ return modLoader == Unspecified || modLoader == Forge || modLoader == Fabric || modLoader == Quilt;
}
};