started kill instance feature

This commit is contained in:
Stiepen22 2013-09-06 18:48:41 +02:00
parent 2acfd00d76
commit b44e70d58d
2 changed files with 9 additions and 0 deletions

View File

@ -138,6 +138,11 @@ void MinecraftProcess::finish(int code, ExitStatus status)
emit ended(); emit ended();
} }
void MinecraftProcess::killMinecraft()
{
killed = true;
}
void MinecraftProcess::launch() void MinecraftProcess::launch()
{ {
if (!m_instance->settings().get("PreLaunchCommand").toString().isEmpty()) if (!m_instance->settings().get("PreLaunchCommand").toString().isEmpty())

View File

@ -59,6 +59,8 @@ public:
void setMinecraftArguments(QStringList args); void setMinecraftArguments(QStringList args);
void killMinecraft();
signals: signals:
/** /**
* @brief emitted when mc has finished and the PostLaunchCommand was run * @brief emitted when mc has finished and the PostLaunchCommand was run
@ -83,4 +85,6 @@ protected slots:
void finish(int, QProcess::ExitStatus status); void finish(int, QProcess::ExitStatus status);
void on_stdErr(); void on_stdErr();
void on_stdOut(); void on_stdOut();
private:
bool killed;
}; };