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

Method switchToEmulationView

pcsx2-qt/MainWindow.cpp:1480–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478}
1479
1480void MainWindow::switchToEmulationView()
1481{
1482 if (!m_display_created || !isShowingGameList())
1483 return;
1484
1485 // we're no longer surfaceless! this will call back to UpdateDisplay(), which will swap the widget out.
1486 g_emu_thread->setSurfaceless(false);
1487
1488 // resume if we weren't paused at switch time
1489 if (s_vm_paused && !m_was_paused_on_surface_loss)
1490 g_emu_thread->setVMPaused(false);
1491
1492 if (m_display_surface)
1493 m_display_surface->setFocus();
1494}
1495
1496void MainWindow::refreshGameList(bool invalidate_cache, bool popup_on_error)
1497{

Callers

nothing calls this directly

Calls 3

setSurfacelessMethod · 0.80
setVMPausedMethod · 0.80
setFocusMethod · 0.80

Tested by

no test coverage detected