NOISSUE Support installing CurseForge packs on modpacks.ch

There should be all the needed changes to install CurseForge modpacks
through modpacks.ch in place now.

Now the effort will need to move towards getting the GUI aspects to play
nice.
This commit is contained in:
Jamie Mansfield
2022-05-02 15:24:44 +01:00
committed by Petr Mrázek
parent 8c1d95b484
commit f7acde4389
5 changed files with 76 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
#pragma once
#include "FTBPackManifest.h"
#include "MCHPackType.h"
#include "InstanceTask.h"
#include "net/NetJob.h"
@@ -29,7 +30,7 @@ class PackInstallTask : public InstanceTask
Q_OBJECT
public:
explicit PackInstallTask(Modpack pack, QString version);
explicit PackInstallTask(Modpack pack, QString version, PackType type = PackType::ModpacksCH);
virtual ~PackInstallTask(){}
bool canAbort() const override { return true; }
@@ -56,6 +57,8 @@ private:
QString m_version_name;
Version m_version;
PackType m_pack_type;
QMap<QString, VersionFile> filesToExtract;
QMap<QString, QString> filesToCopy;