mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix corrupted savestate and fatal error text
This commit is contained in:
parent
1c486cc30b
commit
45444d5ea3
1
CHANGES
1
CHANGES
|
@ -27,6 +27,7 @@ Other fixes:
|
|||
- GB Video: Fix memory leak when reseting SGB games
|
||||
- GBA: Fix out of bounds ROM accesses on patched ROMs smaller than 32 MiB
|
||||
- Libretro: Fix crash when using Game Boy codes (fixes mgba.io/i/2281)
|
||||
- Qt: Fix corrupted savestate and fatal error text
|
||||
Misc:
|
||||
- Core: Suspend runloop when a core crashes
|
||||
- mGUI: Add margin to right-aligned menu text (fixes mgba.io/i/871)
|
||||
|
|
|
@ -183,14 +183,17 @@ CoreController::CoreController(mCore* core, QObject* parent)
|
|||
return;
|
||||
}
|
||||
}
|
||||
message = QString().vsprintf(format, args);
|
||||
va_list argc;
|
||||
va_copy(argc, args);
|
||||
message = QString().vsprintf(format, argc);
|
||||
va_end(argc);
|
||||
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)));
|
||||
QMetaObject::invokeMethod(controller, "crashed", Q_ARG(const QString&, message));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue