corected side and added loaders
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
7015b8f7b2
commit
ab725eeb18
6 changed files with 47 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue