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