NOISSUE move version file reading and writing to dedicated namespaces
This commit is contained in:
parent
17ad1e64f8
commit
a0b47aee5b
16 changed files with 328 additions and 308 deletions
11
logic/minecraft/onesix/OneSixVersionFormat.h
Normal file
11
logic/minecraft/onesix/OneSixVersionFormat.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <minecraft/VersionFile.h>
|
||||
#include <minecraft/MinecraftProfile.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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue