mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-03 16:51:30 +00:00
NOISSUE Redo Curse import on top of modpacks.ch API
This commit is contained in:
@@ -30,7 +30,7 @@ class PackInstallTask : public InstanceTask
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PackInstallTask(Modpack pack, QString version, PackType type = PackType::ModpacksCH);
|
||||
explicit PackInstallTask(Modpack pack, QString version, PackType type = PackType::FTB);
|
||||
virtual ~PackInstallTask(){}
|
||||
|
||||
bool canAbort() const override { return true; }
|
||||
|
@@ -22,6 +22,7 @@
|
||||
#include <QUrl>
|
||||
#include <QJsonObject>
|
||||
#include <QMetaType>
|
||||
#include "MCHPackType.h"
|
||||
|
||||
namespace ModpacksCH
|
||||
{
|
||||
@@ -72,16 +73,17 @@ struct VersionInfo
|
||||
|
||||
struct Modpack
|
||||
{
|
||||
int id;
|
||||
PackType packType = PackType::FTB;
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString synopsis;
|
||||
QString description;
|
||||
QString type;
|
||||
bool featured;
|
||||
int installs;
|
||||
int plays;
|
||||
int64_t updated;
|
||||
int64_t refreshed;
|
||||
bool featured = false;
|
||||
int installs = 0;
|
||||
int plays = 0;
|
||||
int64_t updated = 0;
|
||||
int64_t refreshed = 0;
|
||||
QVector<Art> art;
|
||||
QVector<Author> authors;
|
||||
QVector<VersionInfo> versions;
|
||||
|
@@ -23,7 +23,7 @@ namespace ModpacksCH {
|
||||
QString getRealmForPackType(PackType type)
|
||||
{
|
||||
switch (type) {
|
||||
case PackType::ModpacksCH:
|
||||
case PackType::FTB:
|
||||
return "modpack";
|
||||
case PackType::CurseForge:
|
||||
return "curseforge";
|
||||
|
@@ -21,7 +21,7 @@
|
||||
namespace ModpacksCH {
|
||||
|
||||
enum class PackType {
|
||||
ModpacksCH,
|
||||
FTB,
|
||||
CurseForge,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user