aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/flame/FlameModModel.cpp
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-02-27 15:05:38 -0300
committerflow <thiagodonato300@gmail.com>2022-02-27 16:07:45 -0300
commit075d900d45f25475c7fe600d6237f17d5c257d30 (patch)
tree3b038eff96d1c939c5323544992eb1b6a5bc7661 /launcher/ui/pages/modplatform/flame/FlameModModel.cpp
parent84e9ce71b06f7f123eb0a600ccd9fa0700bae647 (diff)
downloadPrismLauncher-075d900d45f25475c7fe600d6237f17d5c257d30.tar.gz
PrismLauncher-075d900d45f25475c7fe600d6237f17d5c257d30.tar.bz2
PrismLauncher-075d900d45f25475c7fe600d6237f17d5c257d30.zip
fix: Always tell Flame API which modloader we are using
Fixes #206 partially. Although we don't list mods that have no compatibility with the mod loader we are using, mods that have support for both loaders still show up, and the versions for both the loaders are still shown. Also simplifies a little the logic in FlameModIndex::loadIndexedPackVersions
Diffstat (limited to 'launcher/ui/pages/modplatform/flame/FlameModModel.cpp')
-rw-r--r--launcher/ui/pages/modplatform/flame/FlameModModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameModModel.cpp b/launcher/ui/pages/modplatform/flame/FlameModModel.cpp
index 2cf83261..e8afba5a 100644
--- a/launcher/ui/pages/modplatform/flame/FlameModModel.cpp
+++ b/launcher/ui/pages/modplatform/flame/FlameModModel.cpp
@@ -175,13 +175,13 @@ void ListModel::performPaginatedSearch()
"pageSize=25&"
"searchFilter=%2&"
"sort=%3&"
- "%4"
+ "modLoaderType=%4&"
"gameVersion=%5"
)
.arg(nextSearchOffset)
.arg(currentSearchTerm)
.arg(sorts[currentSort])
- .arg(hasFabric ? "modLoaderType=4&" : "")
+ .arg(hasFabric ? 4 : 1) // Enum: https://docs.curseforge.com/?http#tocS_ModLoaderType
.arg(mcVersion);
netJob->addNetAction(Net::Download::makeByteArray(QUrl(searchUrl), &response));