diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-02-28 19:33:05 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-02-28 19:33:05 +0100 |
commit | 1a9793197fadaa25520e2cbb7f5d26e23eca2572 (patch) | |
tree | 9d8884d63d60a0e072f733b60c49a1661c48f12f /logic/launch/steps/LaunchMinecraft.h | |
parent | 9497b7e96cfac6e60a53fe05c0ca945ecc839533 (diff) | |
download | MultiMC-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.h')
-rw-r--r-- | logic/launch/steps/LaunchMinecraft.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/launch/steps/LaunchMinecraft.h b/logic/launch/steps/LaunchMinecraft.h index 808ec33b..6b9f7919 100644 --- a/logic/launch/steps/LaunchMinecraft.h +++ b/logic/launch/steps/LaunchMinecraft.h @@ -17,6 +17,7 @@ #include <launch/LaunchStep.h> #include <launch/LoggedProcess.h> +#include <minecraft/auth/AuthSession.h> class LaunchMinecraft: public LaunchStep { @@ -31,9 +32,9 @@ public: return true; } void setWorkingDirectory(const QString &wd); - void setLaunchScript(const QString &ls) + void setAuthSession(AuthSessionPtr session) { - m_launchScript = ls; + m_session = session; } private slots: void on_state(LoggedProcess::State state); @@ -42,5 +43,6 @@ private: LoggedProcess m_process; QString m_command; QString m_launchScript; + AuthSessionPtr m_session; bool mayProceed = false; }; |