aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceImportTask.h
diff options
context:
space:
mode:
authortimoreo22 <timo.oreo34@gmail.com>2022-05-28 21:53:12 +0200
committerGitHub <noreply@github.com>2022-05-28 21:53:12 +0200
commit699ad316f0d90580fa13d570d6c25aff903a470d (patch)
treebabd9f2ac493e4f47882ca36c5c08c563d697f91 /launcher/InstanceImportTask.h
parentfcbe233fdb79214479820eb8f0489351143b4036 (diff)
downloadPrismLauncher-699ad316f0d90580fa13d570d6c25aff903a470d.tar.gz
PrismLauncher-699ad316f0d90580fa13d570d6c25aff903a470d.tar.bz2
PrismLauncher-699ad316f0d90580fa13d570d6c25aff903a470d.zip
Rework curseforge download (#611)
* Use the bulk endpoint on mod resolution for faster download * Search on modrinth for api blocked mods * Display a dialog for manually downloading blocked mods
Diffstat (limited to 'launcher/InstanceImportTask.h')
-rw-r--r--launcher/InstanceImportTask.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/InstanceImportTask.h b/launcher/InstanceImportTask.h
index 5e4d3235..b67d48f3 100644
--- a/launcher/InstanceImportTask.h
+++ b/launcher/InstanceImportTask.h
@@ -42,6 +42,7 @@
#include <QFutureWatcher>
#include "settings/SettingsObject.h"
#include "QObjectPtr.h"
+#include "modplatform/flame/PackManifest.h"
#include <nonstd/optional>
@@ -59,6 +60,10 @@ public:
bool canAbort() const override { return true; }
bool abort() override;
+ const QVector<Flame::File> &getBlockedFiles() const
+ {
+ return m_blockedMods;
+ }
protected:
//! Entry point for tasks.
@@ -87,6 +92,7 @@ private: /* data */
std::unique_ptr<QuaZip> m_packZip;
QFuture<nonstd::optional<QStringList>> m_extractFuture;
QFutureWatcher<nonstd::optional<QStringList>> m_extractFutureWatcher;
+ QVector<Flame::File> m_blockedMods;
enum class ModpackType{
Unknown,
MultiMC,