all repos — mgba @ 393252718fdabad0e8cb4902be3d2420c17c8005

mGBA Game Boy Advance Emulator

Qt: Ensure thread has not exited if we say it is open
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Jul 2015 18:14:35 -0700
commit

393252718fdabad0e8cb4902be3d2420c17c8005

parent

2575097b7cb40d8871d57810a06e16b9bcccd585

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/GameController.hsrc/platform/qt/GameController.h

@@ -55,7 +55,7 @@ void threadInterrupt();

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; }