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

Method onVMStopped

pcsx2-qt/MainWindow.cpp:2456–2494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454}
2455
2456void 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
2496void MainWindow::onGameChanged(const QString& title, const QString& elf_override, const QString& disc_path,
2497 const QString& serial, quint32 disc_crc, quint32 crc)

Callers

nothing calls this directly

Calls 2

isShowingGameListMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected