PrismLauncher/api/logic/minecraft/curse/PackManifest.h
Petr Mrázek 6bd2605a79 NOISSUE add import from curse zip packs
Does not actually grab mods, but resolves them and prints the results in logs.
2017-04-20 05:22:04 +02:00

46 lines
620 B
C++

#pragma once
#include <QString>
#include <QVector>
namespace Curse
{
struct File
{
int projectId = 0;
int fileId = 0;
bool required = true;
// our
bool resolved = false;
QString fileName;
QString url;
};
struct Modloader
{
QString id;
bool primary = false;
};
struct Minecraft
{
QString version;
QVector<Curse::Modloader> modLoaders;
};
struct Manifest
{
QString manifestType;
int manifestVersion = 0;
Curse::Minecraft minecraft;
QString name;
QString version;
QString author;
QVector<Curse::File> files;
QString overrides;
};
void loadManifest(Curse::Manifest & m, const QString &filepath);
}