summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/ProfileUtils.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-02-27 22:02:56 +0100
committerPetr Mrázek <peterix@gmail.com>2016-02-27 22:02:56 +0100
commita0b47aee5ba8d96e5ceec12798be9f63a16dbcd5 (patch)
tree5fcdca854ff8c93ac6f5b5715a2ff3d0dc7a8ad8 /logic/minecraft/ProfileUtils.cpp
parent17ad1e64f824fba6d8f153191effdb2af7d387c8 (diff)
downloadMultiMC-a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5.tar
MultiMC-a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5.tar.gz
MultiMC-a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5.tar.lz
MultiMC-a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5.tar.xz
MultiMC-a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5.zip
NOISSUE move version file reading and writing to dedicated namespaces
Diffstat (limited to 'logic/minecraft/ProfileUtils.cpp')
-rw-r--r--logic/minecraft/ProfileUtils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/logic/minecraft/ProfileUtils.cpp b/logic/minecraft/ProfileUtils.cpp
index 5816f207..995c2052 100644
--- a/logic/minecraft/ProfileUtils.cpp
+++ b/logic/minecraft/ProfileUtils.cpp
@@ -1,5 +1,6 @@
#include "ProfileUtils.h"
#include "minecraft/VersionFilterData.h"
+#include "minecraft/onesix/OneSixVersionFormat.h"
#include "Json.h"
#include <QDebug>
@@ -128,7 +129,7 @@ VersionFilePtr parseJsonFile(const QFileInfo &fileInfo, const bool requireOrder)
.arg(fileInfo.fileName(), error.errorString())
.arg(line).arg(column));
}
- return VersionFile::fromJson(doc, file.fileName(), requireOrder);
+ return OneSixVersionFormat::fromJson(doc, file.fileName(), requireOrder);
}
VersionFilePtr parseBinaryJsonFile(const QFileInfo &fileInfo)
@@ -147,7 +148,7 @@ VersionFilePtr parseBinaryJsonFile(const QFileInfo &fileInfo)
throw JSONValidationError(
QObject::tr("Unable to process the version file %1.").arg(fileInfo.fileName()));
}
- return VersionFile::fromJson(doc, file.fileName(), false);
+ return OneSixVersionFormat::fromJson(doc, file.fileName(), false);
}
void removeLwjglFromPatch(VersionFilePtr patch)