mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 00:15:16 +00:00
started kill instance feature
This commit is contained in:
parent
2acfd00d76
commit
b44e70d58d
@ -138,6 +138,11 @@ void MinecraftProcess::finish(int code, ExitStatus status)
|
||||
emit ended();
|
||||
}
|
||||
|
||||
void MinecraftProcess::killMinecraft()
|
||||
{
|
||||
killed = true;
|
||||
}
|
||||
|
||||
void MinecraftProcess::launch()
|
||||
{
|
||||
if (!m_instance->settings().get("PreLaunchCommand").toString().isEmpty())
|
||||
|
@ -59,6 +59,8 @@ public:
|
||||
|
||||
void setMinecraftArguments(QStringList args);
|
||||
|
||||
void killMinecraft();
|
||||
|
||||
signals:
|
||||
/**
|
||||
* @brief emitted when mc has finished and the PostLaunchCommand was run
|
||||
@ -83,4 +85,6 @@ protected slots:
|
||||
void finish(int, QProcess::ExitStatus status);
|
||||
void on_stdErr();
|
||||
void on_stdOut();
|
||||
private:
|
||||
bool killed;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user