aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-23 20:16:51 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-23 20:16:51 +0300
commit1515607060d23bd3467a77e2f6045681daa94998 (patch)
tree8e04f70b77525d856bf4217338a2dba49faf6d99
parent6178e5a975d7e967df0d3d45e402ac0fcfb4b43a (diff)
downloadPrismLauncher-1515607060d23bd3467a77e2f6045681daa94998.tar.gz
PrismLauncher-1515607060d23bd3467a77e2f6045681daa94998.tar.bz2
PrismLauncher-1515607060d23bd3467a77e2f6045681daa94998.zip
updated getMappedModLoader
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
-rw-r--r--launcher/modplatform/flame/FlameAPI.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/launcher/modplatform/flame/FlameAPI.h b/launcher/modplatform/flame/FlameAPI.h
index e0386991..0008643d 100644
--- a/launcher/modplatform/flame/FlameAPI.h
+++ b/launcher/modplatform/flame/FlameAPI.h
@@ -41,18 +41,23 @@ class FlameAPI : public NetworkResourceAPI {
}
}
- static int getMappedModLoader(ModPlatform::ModLoaderTypes loaders)
+ static int getMappedModLoader(ModPlatform::ModLoaderType loaders)
{
// https://docs.curseforge.com/?http#tocS_ModLoaderType
- if (loaders & ModPlatform::Forge)
- return 1;
- if (loaders & ModPlatform::Fabric)
- return 4;
- if (loaders & ModPlatform::Quilt)
- return 5;
- if (loaders & ModPlatform::NeoForge)
- return 6;
- return 0;
+ switch (loaders) {
+ case ModPlatform::Forge:
+ return 1;
+ case ModPlatform::Cauldron:
+ return 2;
+ case ModPlatform::LiteLoader:
+ return 3;
+ case ModPlatform::Fabric:
+ return 4;
+ case ModPlatform::Quilt:
+ return 5;
+ case ModPlatform::NeoForge:
+ return 6;
+ }
}
static auto getModLoaderStrings(const ModPlatform::ModLoaderTypes types) -> const QStringList