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/ForgeInstaller.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/ForgeInstaller.cpp')
-rw-r--r-- | logic/ForgeInstaller.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/logic/ForgeInstaller.cpp b/logic/ForgeInstaller.cpp index 47c42694..6b498d70 100644 --- a/logic/ForgeInstaller.cpp +++ b/logic/ForgeInstaller.cpp @@ -171,7 +171,11 @@ bool ForgeInstaller::add(OneSixInstance *to) if (!found) { // add lib - libObj.insert("insert", QString("prepend-if-not-exists")); + libObj.insert("insert", QString("prepend")); + if (lib->name() == "minecraftforge") + { + libObj.insert("MMC-depend", QString("hard")); + } sliding_insert_window++; } librariesPlus.prepend(libObj); |