diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-02 21:23:20 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-26 20:33:10 +0200 |
commit | 75a7ea55d433a38c2e14f8be67a7e3fc27bba092 (patch) | |
tree | 3d44ff29e3db2e325c094844debd65308ff6216f /launcher/modplatform/modpacksch/FTBPackInstallTask.h | |
parent | 86573a5ccd82513330f02695c1556e555a82b8c6 (diff) | |
download | PrismLauncher-75a7ea55d433a38c2e14f8be67a7e3fc27bba092.tar.gz PrismLauncher-75a7ea55d433a38c2e14f8be67a7e3fc27bba092.tar.bz2 PrismLauncher-75a7ea55d433a38c2e14f8be67a7e3fc27bba092.zip |
feat: implement mod resolving for FTB
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/modplatform/modpacksch/FTBPackInstallTask.h')
-rw-r--r-- | launcher/modplatform/modpacksch/FTBPackInstallTask.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/launcher/modplatform/modpacksch/FTBPackInstallTask.h b/launcher/modplatform/modpacksch/FTBPackInstallTask.h index ff59b695..a85f360a 100644 --- a/launcher/modplatform/modpacksch/FTBPackInstallTask.h +++ b/launcher/modplatform/modpacksch/FTBPackInstallTask.h @@ -19,9 +19,13 @@ #include "FTBPackManifest.h" +#include "QObjectPtr.h" +#include "modplatform/flame/FileResolvingTask.h" #include "InstanceTask.h" #include "net/NetJob.h" +#include <QWidget> + namespace ModpacksCH { class PackInstallTask : public InstanceTask @@ -29,7 +33,7 @@ class PackInstallTask : public InstanceTask Q_OBJECT public: - explicit PackInstallTask(Modpack pack, QString version); + explicit PackInstallTask(Modpack pack, QString version, QWidget* parent = nullptr); virtual ~PackInstallTask(){} bool canAbort() const override { return true; } @@ -43,6 +47,7 @@ private slots: void onDownloadFailed(QString reason); private: + void resolveMods(); void downloadPack(); void install(); @@ -50,6 +55,9 @@ private: bool abortable = false; NetJob::Ptr jobPtr; + shared_qobject_ptr<Flame::FileResolvingTask> modIdResolver; + QMap<int, int> indexFileIdMap; + QByteArray response; Modpack m_pack; @@ -58,6 +66,8 @@ private: QMap<QString, QString> filesToCopy; + //FIXME: nuke + QWidget* m_parent; }; } |