Qt: Fix directory set unloading when replacing the ROM

This commit is contained in:
Jeffrey Pfau 2016-09-23 01:20:03 -07:00
parent 3ceadd4ccd
commit 8daa39d21b
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Bugfixes:
- GB Video: Clear screen when LCDC is off
- GBA Cheats: Fix key-activated CodeBreaker cheats
- GB SIO: Don't auto-clock external shift clock
- Qt: Fix directory set unloading when replacing the ROM
Misc:
- All: Only update version info if needed
- FFmpeg: Encoding cleanup

View File

@ -507,6 +507,7 @@ void GameController::replaceGame(const QString& path) {
}
m_fname = info.canonicalFilePath();
threadInterrupt();
mDirectorySetDetachBase(&m_threadContext.core->dirs);
mCoreLoadFile(m_threadContext.core, m_fname.toLocal8Bit().constData());
threadContinue();
}