d4eacb56b3
Not yet used effectively, but it is read and written properly
26 lines
891 B
C++
26 lines
891 B
C++
#pragma once
|
|
|
|
#include <minecraft/VersionFile.h>
|
|
#include <minecraft/MinecraftProfile.h>
|
|
#include <minecraft/Library.h>
|
|
#include <QJsonDocument>
|
|
|
|
class OneSixVersionFormat
|
|
{
|
|
public:
|
|
// whole profiles from single file
|
|
static std::shared_ptr<MinecraftProfile> profileFromSingleJson(const QJsonObject &obj);
|
|
|
|
// version files / profile patches
|
|
static VersionFilePtr versionFileFromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder);
|
|
static QJsonDocument profilePatchToJson(const ProfilePatchPtr &patch, bool saveOrder);
|
|
|
|
// libraries
|
|
static LibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename);
|
|
static QJsonObject libraryToJson(Library *library);
|
|
|
|
// jar mods
|
|
static JarmodPtr jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName);
|
|
static QJsonObject jarModtoJson(Jarmod * jarmod);
|
|
};
|