Qt: Fix patch loading

This commit is contained in:
Jeffrey Pfau 2016-09-30 09:09:55 -07:00
parent 65b4a76952
commit a067bca332
2 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@ Bugfixes:
- LR35902: Fix core never exiting with certain event patterns
- GBA Cheats: Fix uninitialized memory getting freed when saving
- GBA Memory: Fix several unused I/O register read values
- Qt: Fix patch loading
Misc:
- All: Only update version info if needed
- FFmpeg: Encoding cleanup

View File

@ -573,6 +573,8 @@ void GameController::closeGame() {
if (mCoreThreadIsPaused(&m_threadContext)) {
mCoreThreadUnpause(&m_threadContext);
}
m_patch = QString();
QMetaObject::invokeMethod(m_audioProcessor, "pause", Qt::BlockingQueuedConnection);
mCoreThreadEnd(&m_threadContext);
}
@ -586,8 +588,6 @@ void GameController::cleanGame() {
delete[] m_drawContext;
delete[] m_frontBuffer;
m_patch = QString();
m_threadContext.core->deinit(m_threadContext.core);
m_gameOpen = false;
}