mirror of https://github.com/mgba-emu/mgba.git
Qt: Don't crash if patch isn't present
This commit is contained in:
parent
11880f5760
commit
7d79db7d7d
|
@ -571,8 +571,8 @@ void CoreController::loadPatch(const QString& patchPath) {
|
|||
if (patch) {
|
||||
m_threadContext.core->loadPatch(m_threadContext.core, patch);
|
||||
m_patched = true;
|
||||
patch->close(patch);
|
||||
}
|
||||
patch->close(patch);
|
||||
if (mCoreThreadHasStarted(&m_threadContext)) {
|
||||
reset();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue