diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-05-19 02:22:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:31 +0200 |
commit | e118b1f9901d8d006dbe268b4b4047de27e4531d (patch) | |
tree | 6267039d1ff6047544ac98568f6382f751d93d35 /logic/minecraft/VersionBuilder.cpp | |
parent | 55a0d110b654a93ef1bb9ee50a6f02ecaec7f88d (diff) | |
download | MultiMC-e118b1f9901d8d006dbe268b4b4047de27e4531d.tar MultiMC-e118b1f9901d8d006dbe268b4b4047de27e4531d.tar.gz MultiMC-e118b1f9901d8d006dbe268b4b4047de27e4531d.tar.lz MultiMC-e118b1f9901d8d006dbe268b4b4047de27e4531d.tar.xz MultiMC-e118b1f9901d8d006dbe268b4b4047de27e4531d.zip |
Implement adding jar mods, break saving library order.
Diffstat (limited to 'logic/minecraft/VersionBuilder.cpp')
-rw-r--r-- | logic/minecraft/VersionBuilder.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/logic/minecraft/VersionBuilder.cpp b/logic/minecraft/VersionBuilder.cpp index cff70821..86c1da9e 100644 --- a/logic/minecraft/VersionBuilder.cpp +++ b/logic/minecraft/VersionBuilder.cpp @@ -28,7 +28,7 @@ #include "MultiMC.h" #include "logic/minecraft/VersionBuilder.h" -#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/InstanceVersion.h" #include "logic/minecraft/OneSixRule.h" #include "logic/minecraft/VersionPatch.h" #include "logic/minecraft/VersionFile.h" @@ -44,7 +44,7 @@ VersionBuilder::VersionBuilder() { } -void VersionBuilder::build(VersionFinal *version, OneSixInstance *instance, +void VersionBuilder::build(InstanceVersion *version, OneSixInstance *instance, const QStringList &external) { VersionBuilder builder; @@ -54,7 +54,7 @@ void VersionBuilder::build(VersionFinal *version, OneSixInstance *instance, builder.buildInternal(); } -void VersionBuilder::readJsonAndApplyToVersion(VersionFinal *version, const QJsonObject &obj) +void VersionBuilder::readJsonAndApplyToVersion(InstanceVersion *version, const QJsonObject &obj) { VersionBuilder builder; builder.m_version = version; @@ -312,10 +312,9 @@ bool VersionBuilder::writeOverrideOrders(const QMap<QString, int> &order, QJsonObject obj; for (auto it = order.cbegin(); it != order.cend(); ++it) { - if (it.key().startsWith("org.multimc.")) - { + int order = it.value(); + if(order < 0) continue; - } obj.insert(it.key(), it.value()); } QFile orderFile(instance->instanceRoot() + "/order.json"); |