diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-18 22:56:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 22:56:55 +0200 |
commit | 3098aecf9760074a291bd8460ce749e556baad3a (patch) | |
tree | 6796142de8c68e1c852b2fdf1d2bc4aa82d2975d /launcher/modplatform/modrinth/ModrinthAPI.h | |
parent | eb4efa5a9c95f81a1cf628957de19541cc0f5f89 (diff) | |
parent | be2888d6fbf28e515206d8677f8f6c8fce8b6e89 (diff) | |
download | PrismLauncher-3098aecf9760074a291bd8460ce749e556baad3a.tar.gz PrismLauncher-3098aecf9760074a291bd8460ce749e556baad3a.tar.bz2 PrismLauncher-3098aecf9760074a291bd8460ce749e556baad3a.zip |
Merge pull request #1498 from Scrumplex/neoforge
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthAPI.h')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthAPI.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h index 58af14cc..0f150e97 100644 --- a/launcher/modplatform/modrinth/ModrinthAPI.h +++ b/launcher/modplatform/modrinth/ModrinthAPI.h @@ -38,7 +38,7 @@ class ModrinthAPI : public NetworkResourceAPI { static auto getModLoaderStrings(const ModLoaderTypes types) -> const QStringList { QStringList l; - for (auto loader : { Forge, Fabric, Quilt, LiteLoader }) { + for (auto loader : { NeoForge, Forge, Fabric, Quilt, LiteLoader }) { if (types & loader) { l << getModLoaderString(loader); } @@ -141,7 +141,10 @@ class ModrinthAPI : public NetworkResourceAPI { return s.isEmpty() ? QString() : s; } - static inline auto validateModLoaders(ModLoaderTypes loaders) -> bool { return loaders & (Forge | Fabric | Quilt | LiteLoader); } + static inline auto validateModLoaders(ModLoaderTypes loaders) -> bool + { + return loaders & (NeoForge | Forge | Fabric | Quilt | LiteLoader); + } [[nodiscard]] std::optional<QString> getDependencyURL(DependencySearchArgs const& args) const override { |