summaryrefslogtreecommitdiffstats
path: root/logic/OneSixInstance.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-03-09 08:18:50 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-03-09 08:18:50 +0100
commit44f21406e91c68b230d38441b950eb7c3d6a8ec5 (patch)
tree46ae524a9808e6436344f67afd18222a84c96799 /logic/OneSixInstance.cpp
parent737169d1d3ac62a7db99d51e892289aee8c1d3a3 (diff)
downloadMultiMC-44f21406e91c68b230d38441b950eb7c3d6a8ec5.tar
MultiMC-44f21406e91c68b230d38441b950eb7c3d6a8ec5.tar.gz
MultiMC-44f21406e91c68b230d38441b950eb7c3d6a8ec5.tar.lz
MultiMC-44f21406e91c68b230d38441b950eb7c3d6a8ec5.tar.xz
MultiMC-44f21406e91c68b230d38441b950eb7c3d6a8ec5.zip
Some pre/post related stuff
Reload the onesix version config after the commands (addresses https://www.pivotaltracker.com/story/show/60360652) Add a few more variables and also substitute them in the command (fixes https://www.pivotaltracker.com/story/show/66994828)
Diffstat (limited to 'logic/OneSixInstance.cpp')
-rw-r--r--logic/OneSixInstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp
index 10411c56..4f8fef5b 100644
--- a/logic/OneSixInstance.cpp
+++ b/logic/OneSixInstance.cpp
@@ -413,6 +413,11 @@ bool OneSixInstance::providesVersionFile() const
return false;
}
+bool OneSixInstance::reload()
+{
+ return BaseInstance::reload() && reloadVersion();
+}
+
QString OneSixInstance::loaderModsDir() const
{
return PathCombine(minecraftRoot(), "mods");