NOISSUE fix non-zero exit code from minecraft not being a 'crash'
This commit is contained in:
parent
432e812da1
commit
7ef1f88de7
2 changed files with 11 additions and 2 deletions
|
@ -88,8 +88,14 @@ void LaunchMinecraft::on_state(LoggedProcess::State state)
|
|||
case LoggedProcess::Finished:
|
||||
{
|
||||
m_parent->setPid(-1);
|
||||
// if the exit code wasn't 0, report this as a crash
|
||||
auto exitCode = m_process.exitCode();
|
||||
if(exitCode != 0)
|
||||
{
|
||||
emitFailed("Game crashed.");
|
||||
return;
|
||||
}
|
||||
//FIXME: make this work again
|
||||
// auto exitCode = m_process.exitCode();
|
||||
// m_postlaunchprocess.processEnvironment().insert("INST_EXITCODE", QString(exitCode));
|
||||
// run post-exit
|
||||
emitSucceeded();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue