From 4fa3e2a7144c532af62520c9da53f423d6f002ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 24 Apr 2017 01:30:51 +0200 Subject: GH-1856 Fix metadata version and list loading Shouldn't crash anymore, shouldn't overwrite data in some bad way anymore either. --- api/logic/minecraft/ProfilePatch.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api/logic/minecraft/ProfilePatch.cpp') diff --git a/api/logic/minecraft/ProfilePatch.cpp b/api/logic/minecraft/ProfilePatch.cpp index 3ca2ac68..a2605278 100644 --- a/api/logic/minecraft/ProfilePatch.cpp +++ b/api/logic/minecraft/ProfilePatch.cpp @@ -17,6 +17,11 @@ ProfilePatch::ProfilePatch(std::shared_ptr file, const QString& fil { } +std::shared_ptr ProfilePatch::getMeta() +{ + return m_metaVersion; +} + void ProfilePatch::applyTo(MinecraftProfile* profile) { auto vfile = getVersionFile(); -- cgit v1.2.3