diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-23 20:16:51 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-23 20:16:51 +0300 |
commit | 1515607060d23bd3467a77e2f6045681daa94998 (patch) | |
tree | 8e04f70b77525d856bf4217338a2dba49faf6d99 | |
parent | 6178e5a975d7e967df0d3d45e402ac0fcfb4b43a (diff) | |
download | PrismLauncher-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.h | 25 |
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 |