summaryrefslogtreecommitdiffstats
path: root/logic/launch/steps/LaunchMinecraft.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-02-28 19:33:05 +0100
committerPetr Mrázek <peterix@gmail.com>2016-02-28 19:33:05 +0100
commit1a9793197fadaa25520e2cbb7f5d26e23eca2572 (patch)
tree9d8884d63d60a0e072f733b60c49a1661c48f12f /logic/launch/steps/LaunchMinecraft.cpp
parent9497b7e96cfac6e60a53fe05c0ca945ecc839533 (diff)
downloadMultiMC-1a9793197fadaa25520e2cbb7f5d26e23eca2572.tar
MultiMC-1a9793197fadaa25520e2cbb7f5d26e23eca2572.tar.gz
MultiMC-1a9793197fadaa25520e2cbb7f5d26e23eca2572.tar.lz
MultiMC-1a9793197fadaa25520e2cbb7f5d26e23eca2572.tar.xz
MultiMC-1a9793197fadaa25520e2cbb7f5d26e23eca2572.zip
GH-1502 move launch script generation to the Minecraft launch step
Diffstat (limited to 'logic/launch/steps/LaunchMinecraft.cpp')
-rw-r--r--logic/launch/steps/LaunchMinecraft.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/logic/launch/steps/LaunchMinecraft.cpp b/logic/launch/steps/LaunchMinecraft.cpp
index b0fe056f..77a89f17 100644
--- a/logic/launch/steps/LaunchMinecraft.cpp
+++ b/logic/launch/steps/LaunchMinecraft.cpp
@@ -29,6 +29,9 @@ void LaunchMinecraft::executeTask()
{
auto instance = m_parent->instance();
std::shared_ptr<MinecraftInstance> minecraftInstance = std::dynamic_pointer_cast<MinecraftInstance>(instance);
+
+ m_launchScript = minecraftInstance->createLaunchScript(m_session);
+
QStringList args = minecraftInstance->javaArguments();
// HACK: this is a workaround for MCL-3732 - 'server-resource-packs' is created.