diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-23 02:31:13 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-23 02:34:16 +0200 |
commit | 3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba (patch) | |
tree | 298901b19ddf1bd645690bfe1d918d0c20e69780 /api/logic/minecraft/ProfilePatch.cpp | |
parent | b414bbe395d8056365368fde823535fdde398e4c (diff) | |
download | MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar.gz MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar.lz MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.tar.xz MultiMC-3f24c4cfe5afe47eb8ce6f0201b9099e4e50e8ba.zip |
GH-1856 Make MultiMC fail hard when things are missing
Things like:
* jar mods
* valid version files
Diffstat (limited to 'api/logic/minecraft/ProfilePatch.cpp')
-rw-r--r-- | api/logic/minecraft/ProfilePatch.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/api/logic/minecraft/ProfilePatch.cpp b/api/logic/minecraft/ProfilePatch.cpp index 6a90f64b..3ca2ac68 100644 --- a/api/logic/minecraft/ProfilePatch.cpp +++ b/api/logic/minecraft/ProfilePatch.cpp @@ -5,6 +5,7 @@ #include "meta/Version.h" #include "VersionFile.h" +#include "minecraft/MinecraftProfile.h" ProfilePatch::ProfilePatch(std::shared_ptr<Meta::Version> version) :m_metaVersion(version) @@ -23,6 +24,10 @@ void ProfilePatch::applyTo(MinecraftProfile* profile) { vfile->applyTo(profile); } + else + { + profile->applyProblemSeverity(getProblemSeverity()); + } } std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() @@ -35,7 +40,10 @@ std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() } return m_metaVersion->data(); } - return m_file; + else + { + return m_file; + } } std::shared_ptr<class Meta::VersionList> ProfilePatch::getVersionList() |