diff --git a/src/platform/qt/CoreController.cpp b/src/platform/qt/CoreController.cpp index 666fa6b12..40951bec6 100644 --- a/src/platform/qt/CoreController.cpp +++ b/src/platform/qt/CoreController.cpp @@ -654,6 +654,9 @@ void CoreController::yankPak() { GBYankROM(static_cast(m_threadContext.core->board)); break; #endif + case PLATFORM_NONE: + LOG(QT, ERROR) << tr("Can't yank pack in unexpected platform!"); + break; } } diff --git a/src/platform/qt/FrameView.cpp b/src/platform/qt/FrameView.cpp index 6fbcbc584..5c1efa162 100644 --- a/src/platform/qt/FrameView.cpp +++ b/src/platform/qt/FrameView.cpp @@ -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));