diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-19 09:00:59 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-19 09:00:59 +0300 |
commit | 0138cd65cb259966fa9902732bb03e3e7888cc64 (patch) | |
tree | 4e50f77a46a1e3b29e57873c846783683923c556 /launcher | |
parent | 3098aecf9760074a291bd8460ce749e556baad3a (diff) | |
download | PrismLauncher-0138cd65cb259966fa9902732bb03e3e7888cc64.tar.gz PrismLauncher-0138cd65cb259966fa9902732bb03e3e7888cc64.tar.bz2 PrismLauncher-0138cd65cb259966fa9902732bb03e3e7888cc64.zip |
feat:neoforge can download forge mods
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/modplatform/flame/FlameAPI.h | 7 | ||||
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthAPI.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/launcher/modplatform/flame/FlameAPI.h b/launcher/modplatform/flame/FlameAPI.h index a1256e17..e423189a 100644 --- a/launcher/modplatform/flame/FlameAPI.h +++ b/launcher/modplatform/flame/FlameAPI.h @@ -47,9 +47,10 @@ class FlameAPI : public NetworkResourceAPI { return 4; // TODO: remove this once Quilt drops official Fabric support if (loaders & Quilt) // NOTE: Most if not all Fabric mods should work *currently* - return 4; // FIXME: implement multiple loaders filter - if (loaders & NeoForge) - return 6; + return 4; // FIXME: implement multiple loaders filter (this should be 5) + // TODO: remove this once NeoForge drops official Forge support + if (loaders & NeoForge) // NOTE: Most if not all Forge mods should work *currently* + return 1; // FIXME: implement multiple loaders filter (this should be 6) return 0; } diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h index 0f150e97..fb42c532 100644 --- a/launcher/modplatform/modrinth/ModrinthAPI.h +++ b/launcher/modplatform/modrinth/ModrinthAPI.h @@ -43,6 +43,8 @@ class ModrinthAPI : public NetworkResourceAPI { l << getModLoaderString(loader); } } + if ((types & NeoForge) && (~types & Forge)) // Add Forge if NeoForge is in use, if Forge isn't already there + l << getModLoaderString(Forge); if ((types & Quilt) && (~types & Fabric)) // Add Fabric if Quilt is in use, if Fabric isn't already there l << getModLoaderString(Fabric); return l; |