mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix patch loading
This commit is contained in:
parent
a93f3745a8
commit
e982fbc9e2
1
CHANGES
1
CHANGES
|
@ -24,6 +24,7 @@ Bugfixes:
|
|||
- GB: Properly clear KEY1 bit 0 when switching speeds
|
||||
- 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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue