mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix patch loading
This commit is contained in:
parent
65b4a76952
commit
a067bca332
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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