From 9497b7e96cfac6e60a53fe05c0ca945ecc839533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 28 Feb 2016 19:01:54 +0100 Subject: NOISSUE even more version file refactors There is no end to them in sight --- logic/minecraft/onesix/OneSixProfileStrategy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'logic/minecraft/onesix/OneSixProfileStrategy.cpp') diff --git a/logic/minecraft/onesix/OneSixProfileStrategy.cpp b/logic/minecraft/onesix/OneSixProfileStrategy.cpp index 7dca3619..fe4e0d26 100644 --- a/logic/minecraft/onesix/OneSixProfileStrategy.cpp +++ b/logic/minecraft/onesix/OneSixProfileStrategy.cpp @@ -56,7 +56,7 @@ void OneSixProfileStrategy::upgradeDeprecatedFiles() file->fileId = "net.minecraft"; file->version = file->id; file->name = "Minecraft"; - auto data = OneSixVersionFormat::toJson(file, false).toJson(); + auto data = OneSixVersionFormat::profilePatchToJson(file, false).toJson(); QSaveFile newPatchFile(mcJson); if(!newPatchFile.open(QIODevice::WriteOnly)) { @@ -301,7 +301,7 @@ bool OneSixProfileStrategy::customizePatch(ProfilePatchPtr patch) { return false; } - auto document = OneSixVersionFormat::toJson(patch, true); + auto document = OneSixVersionFormat::profilePatchToJson(patch, true); jsonFile.write(document.toJson()); if(!jsonFile.commit()) { @@ -404,7 +404,7 @@ bool OneSixProfileStrategy::installJarMods(QStringList filepaths) << "for reading:" << file.errorString(); return false; } - file.write(OneSixVersionFormat::toJson(f, true).toJson()); + file.write(OneSixVersionFormat::profilePatchToJson(f, true).toJson()); file.close(); profile->appendPatch(f); } -- cgit v1.2.3