diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-02 14:05:07 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-02 14:05:07 +0100 |
commit | ece826bdbc5ca525e253cafcfef3d93e492949f5 (patch) | |
tree | 6a248b84ddd8ecbd90bfd62b072b7cd17edd2686 /logic/LiteLoaderInstaller.cpp | |
parent | 790402bdce96a4ce67b32d228aa251fc4d184f5e (diff) | |
download | MultiMC-ece826bdbc5ca525e253cafcfef3d93e492949f5.tar MultiMC-ece826bdbc5ca525e253cafcfef3d93e492949f5.tar.gz MultiMC-ece826bdbc5ca525e253cafcfef3d93e492949f5.tar.lz MultiMC-ece826bdbc5ca525e253cafcfef3d93e492949f5.tar.xz MultiMC-ece826bdbc5ca525e253cafcfef3d93e492949f5.zip |
Add a MMC-depend field (soft/hard) for version checking
Diffstat (limited to 'logic/LiteLoaderInstaller.cpp')
-rw-r--r-- | logic/LiteLoaderInstaller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/LiteLoaderInstaller.cpp b/logic/LiteLoaderInstaller.cpp index 60a43d49..c363cad6 100644 --- a/logic/LiteLoaderInstaller.cpp +++ b/logic/LiteLoaderInstaller.cpp @@ -63,7 +63,7 @@ bool LiteLoaderInstaller::add(OneSixInstance *to) OneSixLibrary launchwrapperLib("net.minecraft:launchwrapper:" + m_launcherWrapperVersionMapping[to->intendedVersionId()]); launchwrapperLib.finalize(); QJsonObject lwLibObj = launchwrapperLib.toJson(); - lwLibObj.insert("insert", QString("prepend-if-not-exists")); + lwLibObj.insert("insert", QString("prepend")); libraries.append(lwLibObj); } @@ -74,6 +74,7 @@ bool LiteLoaderInstaller::add(OneSixInstance *to) liteloaderLib.finalize(); QJsonObject llLibObj = liteloaderLib.toJson(); llLibObj.insert("insert", QString("prepend")); + llLibObj.insert("MMC-depend", QString("hard")); libraries.append(llLibObj); } |