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

Method setDebugLcdDma

gui/qt/settings.cpp:389–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389void MainWindow::setDebugLcdDma(bool state) {
390 ui->checkDebugDma->setChecked(state);
391 m_config->setValue(SETTING_DEBUGGER_IGNORE_DMA, !state);
392 bool ok;
393 int64_t cycleCounter = ui->cycleView->text().toLongLong(&ok);
394 if (!ok)
395 cycleCounter = debug.totalCycles - (!state ? debug.dmaCycles : 0);
396 else if (!state)
397 cycleCounter -= debug.dmaCycles;
398 else
399 cycleCounter += debug.dmaCycles;
400 ui->cycleView->setText(QString::number(cycleCounter));
401 m_ignoreDmaCycles = !state;
402}
403
404void MainWindow::setFocusSetting(bool state) {
405 ui->checkFocus->setChecked(state);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected