984692dc62
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
26 lines
696 B
C++
26 lines
696 B
C++
#pragma once
|
|
#include "Library.h"
|
|
#include "VersionFile.h"
|
|
|
|
namespace ProfileUtils
|
|
{
|
|
typedef QStringList PatchOrder;
|
|
|
|
/// Read and parse a OneSix format order file
|
|
bool readOverrideOrders(QString path, PatchOrder &order);
|
|
|
|
/// Write a OneSix format order file
|
|
bool writeOverrideOrders(QString path, const PatchOrder &order);
|
|
|
|
|
|
/// Parse a version file in JSON format
|
|
VersionFilePtr parseJsonFile(const QFileInfo &fileInfo, const bool requireOrder);
|
|
|
|
/// Save a JSON file (in any format)
|
|
bool saveJsonFile(const QJsonDocument doc, const QString & filename);
|
|
|
|
/// Remove LWJGL from a patch file. This is applied to all Mojang-like profile files.
|
|
void removeLwjglFromPatch(VersionFilePtr patch);
|
|
|
|
}
|