Qt: Fix unhandled case warnings

This commit is contained in:
Vicki Pfau 2020-12-05 19:52:18 -08:00
parent d28fda120b
commit a8e924ae5e
2 changed files with 13 additions and 0 deletions

View File

@ -654,6 +654,9 @@ void CoreController::yankPak() {
GBYankROM(static_cast<GB*>(m_threadContext.core->board));
break;
#endif
case PLATFORM_NONE:
LOG(QT, ERROR) << tr("Can't yank pack in unexpected platform!");
break;
}
}

View File

@ -302,6 +302,10 @@ void FrameView::injectGBA() {
case LayerId::WINDOW:
m_vl->enableVideoLayer(m_vl, GBA_LAYER_WIN0 + layer.id.index, layer.enabled);
break;
case LayerId::BACKDROP:
case LayerId::FRAME:
case LayerId::NONE:
break;
}
}
if (m_overrideBackdrop.isValid()) {
@ -408,6 +412,10 @@ void FrameView::injectGB() {
gb->video.renderer->highlightWIN = true;
}
break;
case LayerId::FRAME: // TODO for SGB
case LayerId::BACKDROP:
case LayerId::NONE:
break;
}
}
}
@ -433,6 +441,8 @@ void FrameView::invalidateQueue(const QSize& dims) {
injectGB();
break;
#endif
case PLATFORM_NONE:
break;
}
if (m_ui.disableScanline->checkState() == Qt::Checked) {
mVideoLoggerIgnoreAfterInjection(logger, (1 << DIRTY_PALETTE) | (1 << DIRTY_OAM) | (1 << DIRTY_REGISTER));