From 8daa39d21b1dccac49e7dc5ab419819836bbf93d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 23 Sep 2016 01:20:03 -0700 Subject: [PATCH] Qt: Fix directory set unloading when replacing the ROM --- CHANGES | 1 + src/platform/qt/GameController.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 5ac343140..195d7f6b1 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/src/platform/qt/GameController.cpp b/src/platform/qt/GameController.cpp index 2a76c0c8f..d71b4b3d1 100644 --- a/src/platform/qt/GameController.cpp +++ b/src/platform/qt/GameController.cpp @@ -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(); }