Fixed when game crashes, it doesn't log any time played (#3392)

This commit is contained in:
Alexandru Ionut Tripon 2025-02-06 09:35:23 +02:00 committed by GitHub
commit 8d143c7b95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,6 +171,7 @@ void LauncherPartLaunch::on_state(LoggedProcess::State state)
case LoggedProcess::Aborted:
case LoggedProcess::Crashed: {
m_parent->setPid(-1);
m_parent->instance()->setMinecraftRunning(false);
emitFailed(tr("Game crashed."));
return;
}