diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-25 16:23:50 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-25 16:23:50 +0300 |
commit | fa3a46498f7fe4a7d6e26558c03b0485126b377c (patch) | |
tree | c2d85c666e6f1a0290536a0549efa07a543f8e8b /launcher/modplatform/flame | |
parent | d1603f19459a499e5278f38b69222e3f4e0875b4 (diff) | |
download | PrismLauncher-fa3a46498f7fe4a7d6e26558c03b0485126b377c.tar.gz PrismLauncher-fa3a46498f7fe4a7d6e26558c03b0485126b377c.tar.bz2 PrismLauncher-fa3a46498f7fe4a7d6e26558c03b0485126b377c.zip |
Removed dupliacte code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/flame')
-rw-r--r-- | launcher/modplatform/flame/FlamePackExportTask.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/launcher/modplatform/flame/FlamePackExportTask.cpp b/launcher/modplatform/flame/FlamePackExportTask.cpp index b14c6eb4..cbb57afa 100644 --- a/launcher/modplatform/flame/FlamePackExportTask.cpp +++ b/launcher/modplatform/flame/FlamePackExportTask.cpp @@ -165,21 +165,6 @@ void FlamePackExportTask::collectHashes() } } - for (const QFileInfo& file : files) { - const QString relative = gameRoot.relativeFilePath(file.absoluteFilePath()); - if (!relative.endsWith(".zip") || !relative.startsWith("resourcepacks/")) - continue; - totalProgres++; - auto hash_task = Hashing::createFlameHasher(file.absoluteFilePath()); - connect(hash_task.get(), &Hashing::Hasher::resultsReady, [this, relative, file, totalProgres](QString hash) { - if (m_state == Task::State::Running) { - setProgress(m_progress + 1, totalProgres); - pendingHashes.insert(hash, { relative, file.absoluteFilePath(), true }); - } - }); - connect(hash_task.get(), &Task::failed, this, &FlamePackExportTask::emitFailed); - hashing_task->addTask(hash_task); - } connect(hashing_task.get(), &Task::succeeded, this, &FlamePackExportTask::makeApiRequest); connect(hashing_task.get(), &Task::failed, this, &FlamePackExportTask::emitFailed); hashing_task->start(); |