From 393252718fdabad0e8cb4902be3d2420c17c8005 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 19 Jul 2015 18:14:35 -0700 Subject: [PATCH] Qt: Ensure thread has not exited if we say it is open --- src/platform/qt/GameController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/GameController.h b/src/platform/qt/GameController.h index 0fb82ba14..bbd5c2171 100644 --- a/src/platform/qt/GameController.h +++ b/src/platform/qt/GameController.h @@ -55,7 +55,7 @@ public: void threadContinue(); bool isPaused(); - bool isLoaded() { return m_gameOpen; } + bool isLoaded() { return m_gameOpen && GBAThreadIsActive(&m_threadContext); } bool audioSync() const { return m_audioSync; } bool videoSync() const { return m_videoSync; }