aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-14 21:10:41 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit04f42acca06c705eeb49da50c58ff15f7611a7c1 (patch)
treeb982a6d8628e36ad2bc7218c71d687a302117d21 /engines/glk
parentd9e7fca83c7025d2a91ac5341fb9082ea2b8a0fb (diff)
downloadscummvm-rg350-04f42acca06c705eeb49da50c58ff15f7611a7c1.tar.gz
scummvm-rg350-04f42acca06c705eeb49da50c58ff15f7611a7c1.tar.bz2
scummvm-rg350-04f42acca06c705eeb49da50c58ff15f7611a7c1.zip
GLK: FROTZ: Allow exiting ScumMVM when waiting for a keypress
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/processor_streams.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/glk/frotz/processor_streams.cpp b/engines/glk/frotz/processor_streams.cpp
index 581eb1e928..93b9c0bb91 100644
--- a/engines/glk/frotz/processor_streams.cpp
+++ b/engines/glk/frotz/processor_streams.cpp
@@ -145,6 +145,8 @@ continue_input:
key = replay_read_key();
else
key = console_read_key(timeout);
+ if (shouldQuit())
+ return ZC_BAD;
} while (key == ZC_BAD);
// Copy key to the command file