MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / abort

Method abort

launcher/LaunchController.cpp:432–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432bool LaunchController::abort()
433{
434 if (!m_launcher) {
435 return true;
436 }
437 if (!m_launcher->canAbort()) {
438 return false;
439 }
440 auto response = CustomMessageBox::selectable(m_parentWidget, tr("Kill Minecraft?"),
441 tr("This can cause the instance to get corrupted and should only be used if Minecraft "
442 "is frozen for some reason"),
443 QMessageBox::Question, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes)
444 ->exec();
445 if (response == QMessageBox::Yes) {
446 return m_launcher->abort();
447 }
448 return false;
449}

Callers 1

readyForLaunchMethod · 0.45

Calls 3

selectableFunction · 0.85
canAbortMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected