mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-23 04:00:06 +00:00
NOISSUE even more version file refactors
There is no end to them in sight
This commit is contained in:
@@ -2,10 +2,24 @@
|
||||
|
||||
#include <minecraft/VersionFile.h>
|
||||
#include <minecraft/MinecraftProfile.h>
|
||||
#include <minecraft/RawLibrary.h>
|
||||
#include <QJsonDocument>
|
||||
|
||||
namespace OneSixVersionFormat {
|
||||
std::shared_ptr<MinecraftProfile> readProfileFromSingleFile(const QJsonObject &obj);
|
||||
VersionFilePtr fromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder);
|
||||
QJsonDocument toJson(const ProfilePatchPtr &patch, bool saveOrder);
|
||||
}
|
||||
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 RawLibraryPtr libraryFromJson(const QJsonObject &libObj, const QString &filename);
|
||||
static QJsonObject libraryToJson(RawLibrary *library);
|
||||
|
||||
// jar mods
|
||||
static JarmodPtr jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName);
|
||||
static QJsonObject jarModtoJson(Jarmod * jarmod);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user