mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix missing OSD messages
This commit is contained in:
parent
85f7f36a84
commit
6ba8f2321b
1
CHANGES
1
CHANGES
|
@ -8,6 +8,7 @@ Other fixes:
|
||||||
- Qt: Only dynamically reset video scale if a game is running
|
- Qt: Only dynamically reset video scale if a game is running
|
||||||
- Qt: Fix race condition with proxied video events
|
- Qt: Fix race condition with proxied video events
|
||||||
- Qt: Fix color selection in asset view (fixes mgba.io/i/1648)
|
- Qt: Fix color selection in asset view (fixes mgba.io/i/1648)
|
||||||
|
- Qt: Fix missing OSD messages
|
||||||
|
|
||||||
0.8.0: (2020-01-21)
|
0.8.0: (2020-01-21)
|
||||||
Features:
|
Features:
|
||||||
|
|
|
@ -45,6 +45,12 @@ LogController::Stream LogController::operator()(int category, int level) {
|
||||||
|
|
||||||
void LogController::load(const ConfigController* config) {
|
void LogController::load(const ConfigController* config) {
|
||||||
mLogFilterLoad(&m_filter, config->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"));
|
setLogFile(config->getOption("logFile"));
|
||||||
logToStdout(config->getOption("logToStdout").toInt());
|
logToStdout(config->getOption("logToStdout").toInt());
|
||||||
logToFile(config->getOption("logToFile").toInt());
|
logToFile(config->getOption("logToFile").toInt());
|
||||||
|
@ -114,7 +120,7 @@ void LogController::disableLevels(int levels, int category) {
|
||||||
|
|
||||||
void LogController::clearLevels(int category) {
|
void LogController::clearLevels(int category) {
|
||||||
auto id = mLogCategoryId(category);
|
auto id = mLogCategoryId(category);
|
||||||
mLogFilterReset (&m_filter, id);
|
mLogFilterReset(&m_filter, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogController::logToFile(bool log) {
|
void LogController::logToFile(bool log) {
|
||||||
|
|
Loading…
Reference in New Issue