MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / quit

Method quit

pcsx2-qt/MainWindow.cpp:777–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777void MainWindow::quit()
778{
779 // Make sure VM is gone. It really should be if we're here.
780 if (s_vm_valid)
781 {
782 g_emu_thread->shutdownVM(false);
783 while (s_vm_valid)
784 QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1);
785 }
786
787 // Big picture might still be active.
788 if (m_display_created)
789 g_emu_thread->stopFullscreenUI();
790
791 // Ensure subwindows are removed before quitting. That way the log window cancelling
792 // the close event won't cancel the quit process.
793 destroySubWindows();
794 QGuiApplication::quit();
795}
796
797void MainWindow::destroySubWindows()
798{

Callers 4

stopInThreadMethod · 0.80
startVMMethod · 0.80
shutdownVMMethod · 0.80
OnVMResumedMethod · 0.80

Calls 2

shutdownVMMethod · 0.80
stopFullscreenUIMethod · 0.80

Tested by

no test coverage detected