MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / pauseEmu

Method pauseEmu

gui/qt/mainwindow.cpp:1876–1885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1874}
1875
1876void MainWindow::pauseEmu(Qt::ApplicationState state) {
1877 if (m_pauseOnFocus) {
1878 if (state == Qt::ApplicationInactive) {
1879 emu.setSpeed(0);
1880 }
1881 if (state == Qt::ApplicationActive) {
1882 setEmuSpeed(m_config->value(SETTING_EMUSPEED).toInt());
1883 }
1884 }
1885}
1886
1887// ------------------------------------------------
1888// Linking things

Callers

nothing calls this directly

Calls 1

setSpeedMethod · 0.80

Tested by

no test coverage detected