diff options
author | Walter van Niftrik | 2016-11-10 15:07:27 +0100 |
---|---|---|
committer | Walter van Niftrik | 2016-11-10 15:07:27 +0100 |
commit | 89f1e9939c43560419704b3de4a096f1e2c243ef (patch) | |
tree | 11e48328e257d005c52caa4adfac2e47549986db | |
parent | 2a62adc1e0728f26eca970c921f89fb5959d17e2 (diff) | |
download | scummvm-rg350-89f1e9939c43560419704b3de4a096f1e2c243ef.tar.gz scummvm-rg350-89f1e9939c43560419704b3de4a096f1e2c243ef.tar.bz2 scummvm-rg350-89f1e9939c43560419704b3de4a096f1e2c243ef.zip |
ADL: Wait for key in quit opcode
This fixes the hires2 ending issue reported in #9575.
-rw-r--r-- | engines/adl/adl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index ad409b74ee..63b0937354 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -1102,6 +1102,11 @@ int AdlEngine::o1_quit(ScriptEnv &e) { OP_DEBUG_0("\tQUIT_GAME()"); printMessage(_messageIds.thanksForPlaying); + // Wait for a key here to ensure that the user gets a chance + // to read the thank-you message + _display->printAsciiString("PRESS ANY KEY TO QUIT"); + inputKey(); + // We use _isRestarting to abort the current game loop iteration _isQuitting = _isRestarting = true; return -1; |