all repos — mgba @ c1eb1e5ae1843b4d4781fc39c8edaf362943c78e

mGBA Game Boy Advance Emulator

Qt: Ensure FATAL logs reach log view
Vicki Pfau vi@endrift.com
Sat, 12 Jan 2019 15:56:29 -0800
commit

c1eb1e5ae1843b4d4781fc39c8edaf362943c78e

parent

69014400db6b8c299ab5ca6770e5a4e19ae78c0a

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -145,6 +145,7 @@ - GBA I/O: SOUNDCNT_HI is readable when sound is off

- 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
M src/platform/qt/CoreController.cppsrc/platform/qt/CoreController.cpp

@@ -185,12 +185,12 @@ }

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)); }; }