updated getMappedModLoader
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
6178e5a975
commit
1515607060
@ -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
|
// https://docs.curseforge.com/?http#tocS_ModLoaderType
|
||||||
if (loaders & ModPlatform::Forge)
|
switch (loaders) {
|
||||||
return 1;
|
case ModPlatform::Forge:
|
||||||
if (loaders & ModPlatform::Fabric)
|
return 1;
|
||||||
return 4;
|
case ModPlatform::Cauldron:
|
||||||
if (loaders & ModPlatform::Quilt)
|
return 2;
|
||||||
return 5;
|
case ModPlatform::LiteLoader:
|
||||||
if (loaders & ModPlatform::NeoForge)
|
return 3;
|
||||||
return 6;
|
case ModPlatform::Fabric:
|
||||||
return 0;
|
return 4;
|
||||||
|
case ModPlatform::Quilt:
|
||||||
|
return 5;
|
||||||
|
case ModPlatform::NeoForge:
|
||||||
|
return 6;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static auto getModLoaderStrings(const ModPlatform::ModLoaderTypes types) -> const QStringList
|
static auto getModLoaderStrings(const ModPlatform::ModLoaderTypes types) -> const QStringList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user