aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/EnsureMetadataTask.cpp
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/EnsureMetadataTask.cpp
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/EnsureMetadataTask.cpp')
-rw-r--r--launcher/modplatform/EnsureMetadataTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/modplatform/EnsureMetadataTask.cpp b/launcher/modplatform/EnsureMetadataTask.cpp
index 6977c112..a9ad2258 100644
--- a/launcher/modplatform/EnsureMetadataTask.cpp
+++ b/launcher/modplatform/EnsureMetadataTask.cpp
@@ -3,6 +3,7 @@
#include <MurmurHash2.h>
#include <QDebug>
+#include "Application.h"
#include "Json.h"
#include "minecraft/mod/Mod.h"
@@ -33,7 +34,7 @@ EnsureMetadataTask::EnsureMetadataTask(Mod* mod, QDir dir, ModPlatform::Resource
EnsureMetadataTask::EnsureMetadataTask(QList<Mod*>& mods, QDir dir, ModPlatform::ResourceProvider prov)
: Task(nullptr), m_index_dir(dir), m_provider(prov), m_current_task(nullptr)
{
- m_hashing_task.reset(new ConcurrentTask(this, "MakeHashesTask"));
+ m_hashing_task.reset(new ConcurrentTask(this, "MakeHashesTask", APPLICATION->settings()->get("NumberOfConcurrentTasks").toInt()));
for (auto* mod : mods) {
auto hash_task = createNewHash(mod);
if (!hash_task)