aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/flame
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-14 22:26:22 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-14 22:26:22 +0300
commitdb9f5f44e08dae27578f0d74e5092f47e40a1216 (patch)
tree699110c02fafd5d2d843925e877aaa83066fb915 /launcher/modplatform/flame
parentcebb4dd17ae9bfab35210250ab7a5484c644abb0 (diff)
downloadPrismLauncher-db9f5f44e08dae27578f0d74e5092f47e40a1216.tar.gz
PrismLauncher-db9f5f44e08dae27578f0d74e5092f47e40a1216.tar.bz2
PrismLauncher-db9f5f44e08dae27578f0d74e5092f47e40a1216.zip
Split in two the options
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
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 48ddddf7..b0e5638d 100644
--- a/launcher/modplatform/flame/FlamePackExportTask.cpp
+++ b/launcher/modplatform/flame/FlamePackExportTask.cpp
@@ -27,6 +27,7 @@
#include <QtConcurrentRun>
#include <algorithm>
#include <memory>
+#include "Application.h"
#include "Json.h"
#include "MMCZip.h"
#include "minecraft/PackProfile.h"
@@ -108,7 +109,8 @@ void FlamePackExportTask::collectHashes()
setStatus(tr("Finding file hashes..."));
setProgress(1, 5);
auto allMods = mcInstance->loaderModList()->allMods();
- ConcurrentTask::Ptr hashingTask(new ConcurrentTask(this, "MakeHashesTask"));
+ 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());