aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/flame
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-03-06 16:45:39 -0300
committerflow <thiagodonato300@gmail.com>2022-03-06 16:45:39 -0300
commit39bd04f06ff42623f7349096d707c4a877fc7cd7 (patch)
tree8e3b6dd4da7e843f26afece1a1991ed6410bce71 /launcher/modplatform/flame
parentd755174bee1b1c5ba507d1d407236190501c7940 (diff)
downloadPrismLauncher-39bd04f06ff42623f7349096d707c4a877fc7cd7.tar.gz
PrismLauncher-39bd04f06ff42623f7349096d707c4a877fc7cd7.tar.bz2
PrismLauncher-39bd04f06ff42623f7349096d707c4a877fc7cd7.zip
refactor: use Enum instead of raw int for ModLoaderType
Diffstat (limited to 'launcher/modplatform/flame')
-rw-r--r--launcher/modplatform/flame/FlameAPI.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/launcher/modplatform/flame/FlameAPI.h b/launcher/modplatform/flame/FlameAPI.h
index 6e2b9e25..b49aeb24 100644
--- a/launcher/modplatform/flame/FlameAPI.h
+++ b/launcher/modplatform/flame/FlameAPI.h
@@ -4,7 +4,8 @@
class FlameAPI : public ModAPI {
public:
- inline QString getModSearchURL(int index, QString searchFilter, QString sort, bool fabricCompatible, QString version) const override
+
+ inline QString getModSearchURL(int index, QString searchFilter, QString sort, ModLoaderType modLoader, QString version) const override
{
return QString("https://addons-ecs.forgesvc.net/api/v2/addon/search?"
"gameId=432&" "categoryId=0&" "sectionId=6&"
@@ -14,7 +15,7 @@ class FlameAPI : public ModAPI {
.arg(index)
.arg(searchFilter)
.arg(sort)
- .arg(fabricCompatible ? 4 : 1) // Enum: https://docs.curseforge.com/?http#tocS_ModLoaderType
+ .arg(modLoader)
.arg(version);
};