summaryrefslogtreecommitdiffstats
path: root/backend/MinecraftProcess.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-03 15:57:33 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-03 15:57:33 +0200
commit13b1b98f7cf8a3b3b2c15dd42f96537b02c00711 (patch)
treeff3a67221e90eb9aa067e0b0d1f934fd4dd28534 /backend/MinecraftProcess.h
parent2e0cbf393a5320dbf5448ca44a9b5905314b0be8 (diff)
downloadMultiMC-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.h35
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();
-
};