diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-24 01:30:51 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-24 01:30:51 +0200 |
commit | 4fa3e2a7144c532af62520c9da53f423d6f002ca (patch) | |
tree | 22af01b94f28c7f6bd56e42d399b1c76887a2fc5 /api/logic/minecraft/ProfilePatch.cpp | |
parent | d25a7ad3a627dfc15067adb1e2c178faafc5bd3e (diff) | |
download | MultiMC-4fa3e2a7144c532af62520c9da53f423d6f002ca.tar MultiMC-4fa3e2a7144c532af62520c9da53f423d6f002ca.tar.gz MultiMC-4fa3e2a7144c532af62520c9da53f423d6f002ca.tar.lz MultiMC-4fa3e2a7144c532af62520c9da53f423d6f002ca.tar.xz MultiMC-4fa3e2a7144c532af62520c9da53f423d6f002ca.zip |
GH-1856 Fix metadata version and list loading
Shouldn't crash anymore, shouldn't overwrite data in some bad way anymore either.
Diffstat (limited to 'api/logic/minecraft/ProfilePatch.cpp')
-rw-r--r-- | api/logic/minecraft/ProfilePatch.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<VersionFile> file, const QString& fil { } +std::shared_ptr<Meta::Version> ProfilePatch::getMeta() +{ + return m_metaVersion; +} + void ProfilePatch::applyTo(MinecraftProfile* profile) { auto vfile = getVersionFile(); |