corected side and added loaders
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ QString getMetaURL(ResourceProvider provider, QVariant projectID)
|
||||
projectID.toString();
|
||||
}
|
||||
|
||||
auto getModLoaderString(ModLoaderType type) -> const QString
|
||||
auto getModLoaderAsString(ModLoaderType type) -> const QString
|
||||
{
|
||||
switch (type) {
|
||||
case NeoForge:
|
||||
@@ -138,4 +138,21 @@ auto getModLoaderString(ModLoaderType type) -> const QString
|
||||
return "";
|
||||
}
|
||||
|
||||
auto getModLoaderFromString(QString type) -> const ModLoaderType
|
||||
{
|
||||
if (type == "neoforge")
|
||||
return NeoForge;
|
||||
if (type == "forge")
|
||||
return Forge;
|
||||
if (type == "cauldron")
|
||||
return Cauldron;
|
||||
if (type == "liteloader")
|
||||
return LiteLoader;
|
||||
if (type == "fabric")
|
||||
return Fabric;
|
||||
if (type == "quilt")
|
||||
return Quilt;
|
||||
return {};
|
||||
}
|
||||
|
||||
} // namespace ModPlatform
|
||||
|
||||
Reference in New Issue
Block a user