Qt: Don't unload ROM immediately if it crashes

This commit is contained in:
Vicki Pfau 2019-01-12 16:40:27 -08:00
parent 6a5ce56f73
commit 08f10b2d73
3 changed files with 1 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
- GB Memory: Support running from blocked memory
- Qt: Don't unload ROM immediately if it crashes
0.7.0: (Future)
Features:

View File

@ -188,7 +188,6 @@ CoreController::CoreController(mCore* core, QObject* parent)
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)));
}
};

View File

@ -802,7 +802,6 @@ void Window::gameCrashed(const QString& errorMessage) {
QMessageBox::Ok, this, Qt::Sheet);
crash->setAttribute(Qt::WA_DeleteOnClose);
crash->show();
m_controller->stop();
}
void Window::gameFailed() {