mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 09:08:42 +00:00
NOISSUE make new Mojang version format pass through MultiMC structures
Not yet used effectively, but it is read and written properly
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <minecraft/VersionFile.h>
|
||||
#include <minecraft/Library.h>
|
||||
#include <QJsonDocument>
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
@@ -11,4 +12,18 @@ public:
|
||||
// version files / profile patches
|
||||
static VersionFilePtr versionFileFromJson(const QJsonDocument &doc, const QString &filename);
|
||||
static QJsonDocument profilePatchToJson(const ProfilePatchPtr &patch);
|
||||
|
||||
// libraries
|
||||
static LibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename);
|
||||
static QJsonObject libraryToJson(Library *library);
|
||||
|
||||
private:
|
||||
static QJsonDocument versionFileToJson(VersionFilePtr patch);
|
||||
|
||||
static MojangAssetIndexInfoPtr assetIndexFromJson (const QJsonObject &obj);
|
||||
static MojangDownloadInfoPtr downloadInfoFromJson (const QJsonObject &obj);
|
||||
static MojangLibraryDownloadInfoPtr libDownloadInfoFromJson (const QJsonObject &libObj);
|
||||
static QJsonObject assetIndexToJson (MojangAssetIndexInfoPtr assetidxinfo);
|
||||
static QJsonObject libDownloadInfoToJson (MojangLibraryDownloadInfoPtr libinfo);
|
||||
static QJsonObject downloadInfoToJson (MojangDownloadInfoPtr info);
|
||||
};
|
||||
|
Reference in New Issue
Block a user