GLK: FROTZ: Fix exiting when application is forcefully closed

This commit is contained in:
Paul Gilbert 2018-11-14 20:57:30 -08:00 committed by Paul Gilbert
parent af081ad322
commit d9e7fca83c
3 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,7 @@ void GlkInterface::initialize() {
// Use the ms-dos interpreter number for v6, because that's the
// kind of graphics files we understand. Otherwise, use DEC.
h_interpreter_number = h_version == 6 ? INTERP_MSDOS : INTERP_DEC_20;
h_interpreter_number = h_version == 6 ? INTERP_MSDOS : INTERP_AMIGA;
h_interpreter_version = 'F';
{

View File

@ -285,7 +285,7 @@ void Processor::interpret() {
if (end_of_sound_flag)
end_of_sound();
#endif
} while (!_finished);
} while (!shouldQuit() && !_finished);
_finished--;
}

View File

@ -182,6 +182,8 @@ continue_input:
key = replay_read_input(buf);
else
key = console_read_input(max, buf, timeout, key != ZC_BAD);
if (shouldQuit())
return ZC_BAD;
} while (key == ZC_BAD);
// Copy input line to the command file