diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-02-28 19:01:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-02-28 19:01:54 +0100 |
commit | 9497b7e96cfac6e60a53fe05c0ca945ecc839533 (patch) | |
tree | a7b129de1109995e4416304e0e873af44bcca5ee /logic/minecraft/onesix/OneSixProfileStrategy.cpp | |
parent | a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5 (diff) | |
download | MultiMC-9497b7e96cfac6e60a53fe05c0ca945ecc839533.tar MultiMC-9497b7e96cfac6e60a53fe05c0ca945ecc839533.tar.gz MultiMC-9497b7e96cfac6e60a53fe05c0ca945ecc839533.tar.lz MultiMC-9497b7e96cfac6e60a53fe05c0ca945ecc839533.tar.xz MultiMC-9497b7e96cfac6e60a53fe05c0ca945ecc839533.zip |
NOISSUE even more version file refactors
There is no end to them in sight
Diffstat (limited to 'logic/minecraft/onesix/OneSixProfileStrategy.cpp')
-rw-r--r-- | logic/minecraft/onesix/OneSixProfileStrategy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |