Made instace killing actually work
This commit is contained in:
parent
b44e70d58d
commit
f897a200e2
7 changed files with 43 additions and 7 deletions
|
@ -120,7 +120,12 @@ void MinecraftProcess::finish(int code, ExitStatus status)
|
|||
//TODO: error handling
|
||||
}
|
||||
|
||||
emit log("Minecraft exited.");
|
||||
// TODO: Localization
|
||||
|
||||
if (!killed)
|
||||
emit log("Minecraft exited.");
|
||||
else
|
||||
emit log("Minecraft was killed by user.", MessageLevel::Error);
|
||||
|
||||
m_prepostlaunchprocess.processEnvironment().insert("INST_EXITCODE", QString(code));
|
||||
|
||||
|
@ -141,6 +146,7 @@ void MinecraftProcess::finish(int code, ExitStatus status)
|
|||
void MinecraftProcess::killMinecraft()
|
||||
{
|
||||
killed = true;
|
||||
kill();
|
||||
}
|
||||
|
||||
void MinecraftProcess::launch()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue