diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-03 15:57:33 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-03 15:57:33 +0200 |
commit | 13b1b98f7cf8a3b3b2c15dd42f96537b02c00711 (patch) | |
tree | ff3a67221e90eb9aa067e0b0d1f934fd4dd28534 /backend/MinecraftProcess.h | |
parent | 2e0cbf393a5320dbf5448ca44a9b5905314b0be8 (diff) | |
download | MultiMC-13b1b98f7cf8a3b3b2c15dd42f96537b02c00711.tar MultiMC-13b1b98f7cf8a3b3b2c15dd42f96537b02c00711.tar.gz MultiMC-13b1b98f7cf8a3b3b2c15dd42f96537b02c00711.tar.lz MultiMC-13b1b98f7cf8a3b3b2c15dd42f96537b02c00711.tar.xz MultiMC-13b1b98f7cf8a3b3b2c15dd42f96537b02c00711.zip |
WTF, I don't even...
Diffstat (limited to 'backend/MinecraftProcess.h')
-rw-r--r-- | backend/MinecraftProcess.h | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/backend/MinecraftProcess.h b/backend/MinecraftProcess.h index c846f5f4..756d2de5 100644 --- a/backend/MinecraftProcess.h +++ b/backend/MinecraftProcess.h @@ -49,36 +49,18 @@ public: /** * @brief MinecraftProcess constructor * @param inst the Instance pointer to launch - * @param user the minecraft username - * @param session the minecraft session id - * @param console the instance console window */ - MinecraftProcess(BaseInstance *inst, QString user, QString session); + MinecraftProcess(BaseInstance *inst); /** * @brief launch minecraft */ void launch(); - /** - * @brief extract the instance icon - * @param inst the instance - * @param destination the destination path - */ - static inline void extractIcon(BaseInstance *inst, QString destination); - - /** - * @brief extract the MultiMC launcher.jar - * @param destination the destination path - */ - static inline void extractLauncher(QString destination); - - /** - * @brief prepare the launch by extracting icon and launcher - * @param inst the instance - */ - static void prepare(BaseInstance *inst); - + void setMinecraftWorkdir(QString path); + + void setMinecraftArguments(QStringList args); + signals: /** * @brief emitted when mc has finished and the PostLaunchCommand was run @@ -94,18 +76,13 @@ signals: protected: BaseInstance *m_instance; - QString m_user; - QString m_session; + QStringList m_args; QString m_err_leftover; QString m_out_leftover; QProcess m_prepostlaunchprocess; - QStringList m_arguments; - - void genArgs(); protected slots: void finish(int, QProcess::ExitStatus status); void on_stdErr(); void on_stdOut(); - }; |