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

Method switchToGameListView

pcsx2-qt/MainWindow.cpp:1459–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457}
1458
1459void MainWindow::switchToGameListView()
1460{
1461 if (isShowingGameList())
1462 {
1463 m_game_list_widget->setFocus();
1464 return;
1465 }
1466
1467 if (m_display_created)
1468 {
1469 m_was_paused_on_surface_loss = s_vm_paused;
1470 if (!s_vm_paused)
1471 g_emu_thread->setVMPaused(true);
1472
1473 // switch to surfaceless. we have to wait until the display widget is gone before we swap over.
1474 g_emu_thread->setSurfaceless(true);
1475 while (m_display_surface)
1476 QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1);
1477 }
1478}
1479
1480void MainWindow::switchToEmulationView()
1481{

Callers

nothing calls this directly

Calls 3

setFocusMethod · 0.80
setVMPausedMethod · 0.80
setSurfacelessMethod · 0.80

Tested by

no test coverage detected