From 69c3e7111f93290d1278d6116e9fd50079b4fe79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 May 2014 12:37:21 +0200 Subject: Make 1.6+ work with new instance format. --- logic/minecraft/VersionFile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'logic/minecraft/VersionFile.h') diff --git a/logic/minecraft/VersionFile.h b/logic/minecraft/VersionFile.h index 9c632d6f..2d3781cb 100644 --- a/logic/minecraft/VersionFile.h +++ b/logic/minecraft/VersionFile.h @@ -8,7 +8,7 @@ #include "logic/minecraft/OneSixRule.h" #include "VersionPatch.h" #include "MMCError.h" -#include "RawLibrary.h" +#include "OneSixLibrary.h" #include "JarMod.h" class VersionFinal; @@ -20,10 +20,10 @@ class VersionFile : public VersionPatch public: /* methods */ static VersionFilePtr fromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder, const bool isFTB = false); + QJsonDocument toJson(bool saveOrder); - static OneSixLibraryPtr createLibrary(RawLibraryPtr lib); virtual void applyTo(VersionFinal *version) override; - virtual bool isVanilla() override; + virtual bool isMinecraftVersion() override; virtual bool hasJarMods() override; virtual int getOrder() override { -- cgit v1.2.3