| 2454 | } |
| 2455 | |
| 2456 | void MainWindow::onVMStopped() |
| 2457 | { |
| 2458 | s_vm_valid = false; |
| 2459 | s_vm_paused = false; |
| 2460 | |
| 2461 | const QString empty_string; |
| 2462 | m_last_fps_status = empty_string; |
| 2463 | m_status_renderer_widget->setText(empty_string); |
| 2464 | m_status_resolution_widget->setText(empty_string); |
| 2465 | m_status_volume_widget->setText(empty_string); |
| 2466 | m_status_gpu_widget->setText(empty_string); |
| 2467 | m_status_fps_widget->setText(empty_string); |
| 2468 | m_status_vps_widget->setText(empty_string); |
| 2469 | m_status_speed_widget->setText(empty_string); |
| 2470 | m_status_verbose_widget->setText(empty_string); |
| 2471 | |
| 2472 | updateEmulationActions(false, false, false); |
| 2473 | updateGameDependentActions(); |
| 2474 | updateWindowTitle(); |
| 2475 | updateWindowState(); |
| 2476 | updateStatusBarWidgetVisibility(); |
| 2477 | updateInputRecordingActions(false); |
| 2478 | |
| 2479 | // If we're closing or in batch mode, quit the whole application now. |
| 2480 | if (m_is_closing || Host::InBatchMode()) |
| 2481 | { |
| 2482 | quit(); |
| 2483 | return; |
| 2484 | } |
| 2485 | |
| 2486 | if (m_display_surface) |
| 2487 | updateDisplayWidgetCursor(); |
| 2488 | else |
| 2489 | switchToGameListView(); |
| 2490 | |
| 2491 | // reload played time |
| 2492 | if (m_game_list_widget->isShowingGameList()) |
| 2493 | m_game_list_widget->refresh(false, false); |
| 2494 | } |
| 2495 | |
| 2496 | void MainWindow::onGameChanged(const QString& title, const QString& elf_override, const QString& disc_path, |
| 2497 | const QString& serial, quint32 disc_crc, quint32 crc) |
nothing calls this directly
no test coverage detected