Qt: Fix missing OSD messages
Vicki Pfau vi@endrift.com
Sun, 26 Jan 2020 23:51:35 -0800
2 files changed,
8 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -13,6 +13,7 @@ - Qt: Only dynamically reset video scale if a game is running
- Qt: Fix race condition with proxied video events - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642) - Qt: Fix color selection in asset view (fixes mgba.io/i/1648) + - Qt: Fix missing OSD messages 0.8.0: (2020-01-21) Features:
M
src/platform/qt/LogController.cpp
→
src/platform/qt/LogController.cpp
@@ -45,6 +45,12 @@ }
void LogController::load(const ConfigController* config) { mLogFilterLoad(&m_filter, config->config()); + if (!levels(mLogCategoryById("gba.bios"))) { + mLogFilterSet(&m_filter, "gba.bios", mLOG_STUB | mLOG_FATAL); + } + if (!levels(mLogCategoryById("core.status"))) { + mLogFilterSet(&m_filter, "core.status", mLOG_ALL & ~mLOG_DEBUG); + } setLogFile(config->getOption("logFile")); logToStdout(config->getOption("logToStdout").toInt()); logToFile(config->getOption("logToFile").toInt());@@ -114,7 +120,7 @@ }
void LogController::clearLevels(int category) { auto id = mLogCategoryId(category); - mLogFilterReset (&m_filter, id); + mLogFilterReset(&m_filter, id); } void LogController::logToFile(bool log) {