| 1478 | } |
| 1479 | |
| 1480 | void 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 | |
| 1496 | void MainWindow::refreshGameList(bool invalidate_cache, bool popup_on_error) |
| 1497 | { |
nothing calls this directly
no test coverage detected