summaryrefslogtreecommitdiffstats
path: root/logic/OneSixVersion.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-08 17:22:26 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-08 17:22:26 +0100
commit53069205faf4063e838bab4beea5089d6ec2a0af (patch)
treecf71bc71efc845f652807232b1e6d7442e587abb /logic/OneSixVersion.cpp
parent6d9819cccf3809edef2f6a1aeb0c6d01d6067501 (diff)
downloadMultiMC-53069205faf4063e838bab4beea5089d6ec2a0af.tar
MultiMC-53069205faf4063e838bab4beea5089d6ec2a0af.tar.gz
MultiMC-53069205faf4063e838bab4beea5089d6ec2a0af.tar.lz
MultiMC-53069205faf4063e838bab4beea5089d6ec2a0af.tar.xz
MultiMC-53069205faf4063e838bab4beea5089d6ec2a0af.zip
Allow overriding the order in which patches are applied
Diffstat (limited to 'logic/OneSixVersion.cpp')
-rw-r--r--logic/OneSixVersion.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/OneSixVersion.cpp b/logic/OneSixVersion.cpp
index e19683d8..fb32f3a8 100644
--- a/logic/OneSixVersion.cpp
+++ b/logic/OneSixVersion.cpp
@@ -81,6 +81,15 @@ bool OneSixVersion::canRemove(const int index) const
return false;
}
+QString OneSixVersion::versionFileId(const int index) const
+{
+ if (index < 0 || index >= versionFiles.size())
+ {
+ return QString();
+ }
+ return versionFiles.at(index).id;
+}
+
bool OneSixVersion::remove(const int index)
{
if (canRemove(index))