aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/flame
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-09-28 22:02:57 +0200
committerGitHub <noreply@github.com>2023-09-28 22:02:57 +0200
commit2ff9ef062034ec84ac75d6e4d294f2a448e7dfdd (patch)
treeabc08ccdf5d323daac905ec409fb31300294e9b3 /launcher/modplatform/flame
parent59e565ef96b85be9a25fa5d4f1723ee87fd5e75e (diff)
parentcf27d2f9ab206e24f7dfd909a88d7db48fd0a74a (diff)
downloadPrismLauncher-2ff9ef062034ec84ac75d6e4d294f2a448e7dfdd.tar.gz
PrismLauncher-2ff9ef062034ec84ac75d6e4d294f2a448e7dfdd.tar.bz2
PrismLauncher-2ff9ef062034ec84ac75d6e4d294f2a448e7dfdd.zip
Merge pull request #1363 from Trial97/download_threads
Diffstat (limited to 'launcher/modplatform/flame')
-rw-r--r--launcher/modplatform/flame/FlamePackExportTask.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/launcher/modplatform/flame/FlamePackExportTask.cpp b/launcher/modplatform/flame/FlamePackExportTask.cpp
index d86d34bf..b5ab7bc7 100644
--- a/launcher/modplatform/flame/FlamePackExportTask.cpp
+++ b/launcher/modplatform/flame/FlamePackExportTask.cpp
@@ -28,6 +28,7 @@
#include <algorithm>
#include <iterator>
#include <memory>
+#include "Application.h"
#include "Json.h"
#include "MMCZip.h"
#include "minecraft/PackProfile.h"
@@ -102,7 +103,8 @@ void FlamePackExportTask::collectHashes()
setStatus(tr("Finding file hashes..."));
setProgress(1, 5);
auto allMods = mcInstance->loaderModList()->allMods();
- ConcurrentTask::Ptr hashingTask(new ConcurrentTask(this, "MakeHashesTask", 10));
+ ConcurrentTask::Ptr hashingTask(
+ new ConcurrentTask(this, "MakeHashesTask", APPLICATION->settings()->get("NumberOfConcurrentTasks").toInt()));
task.reset(hashingTask);
for (const QFileInfo& file : files) {
const QString relative = gameRoot.relativeFilePath(file.absoluteFilePath());