summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/VersionBuilder.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-05-20 01:17:54 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:31 +0200
commit48d3052ac1bf55dfc0d149d5e2590bcd6545dc67 (patch)
treedf6b12db233b3961f66f99322882bb6faccaa968 /logic/minecraft/VersionBuilder.h
parente118b1f9901d8d006dbe268b4b4047de27e4531d (diff)
downloadMultiMC-48d3052ac1bf55dfc0d149d5e2590bcd6545dc67.tar
MultiMC-48d3052ac1bf55dfc0d149d5e2590bcd6545dc67.tar.gz
MultiMC-48d3052ac1bf55dfc0d149d5e2590bcd6545dc67.tar.lz
MultiMC-48d3052ac1bf55dfc0d149d5e2590bcd6545dc67.tar.xz
MultiMC-48d3052ac1bf55dfc0d149d5e2590bcd6545dc67.zip
New, simpler and versioned format for the patch load order.
Diffstat (limited to 'logic/minecraft/VersionBuilder.h')
-rw-r--r--logic/minecraft/VersionBuilder.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/minecraft/VersionBuilder.h b/logic/minecraft/VersionBuilder.h
index 77746199..350179b9 100644
--- a/logic/minecraft/VersionBuilder.h
+++ b/logic/minecraft/VersionBuilder.h
@@ -24,6 +24,8 @@ class OneSixInstance;
class QJsonObject;
class QFileInfo;
+typedef QStringList PatchOrder;
+
class VersionBuilder
{
VersionBuilder();
@@ -33,8 +35,8 @@ public:
static VersionFilePtr parseJsonFile(const QFileInfo &fileInfo, const bool requireOrder, bool isFTB = false);
static VersionFilePtr parseBinaryJsonFile(const QFileInfo &fileInfo);
- static QMap<QString, int> readOverrideOrders(OneSixInstance *instance);
- static bool writeOverrideOrders(const QMap<QString, int> &order, OneSixInstance *instance);
+ bool readOverrideOrders(OneSixInstance *instance, PatchOrder &order);
+ static bool writeOverrideOrders(OneSixInstance *instance, const PatchOrder &order);
private:
InstanceVersion *m_version;