mirror of https://github.com/mgba-emu/mgba.git
Qt: Ensure FATAL logs reach log view
This commit is contained in:
parent
69014400db
commit
c1eb1e5ae1
1
CHANGES
1
CHANGES
|
@ -145,6 +145,7 @@ Bugfixes:
|
|||
- SDL: Fix handling of invalid gamepads (fixes mgba.io/i/1239)
|
||||
- Libretro: Fix adding codes with hooks
|
||||
- GBA: Fix GB Player features
|
||||
- Qt: Ensure FATAL logs reach log view
|
||||
Misc:
|
||||
- mGUI: Add SGB border configuration option
|
||||
- mGUI: Add support for different settings types
|
||||
|
|
|
@ -185,12 +185,12 @@ CoreController::CoreController(mCore* core, QObject* parent)
|
|||
message = QString().vsprintf(format, args);
|
||||
QMetaObject::invokeMethod(controller, "statusPosted", Q_ARG(const QString&, message));
|
||||
}
|
||||
message = QString().vsprintf(format, args);
|
||||
QMetaObject::invokeMethod(controller, "logPosted", Q_ARG(int, level), Q_ARG(int, category), Q_ARG(const QString&, message));
|
||||
if (level == mLOG_FATAL) {
|
||||
mCoreThreadMarkCrashed(controller->thread());
|
||||
QMetaObject::invokeMethod(controller, "crashed", Q_ARG(const QString&, QString().vsprintf(format, args)));
|
||||
}
|
||||
message = QString().vsprintf(format, args);
|
||||
QMetaObject::invokeMethod(controller, "logPosted", Q_ARG(int, level), Q_ARG(int, category), Q_ARG(const QString&, message));
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue