diff options
author | Johannes Schickel | 2012-11-30 18:10:51 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-11-30 18:10:51 +0100 |
commit | 6fd5f650bcad149d7352e5a1406eef8f5ea8397a (patch) | |
tree | a68f7a81f1c23f2a9815407524543492e4bbd431 /engines/kyra | |
parent | f96011511beaf16394a54ef5f7ca3975324a31d9 (diff) | |
download | scummvm-rg350-6fd5f650bcad149d7352e5a1406eef8f5ea8397a.tar.gz scummvm-rg350-6fd5f650bcad149d7352e5a1406eef8f5ea8397a.tar.bz2 scummvm-rg350-6fd5f650bcad149d7352e5a1406eef8f5ea8397a.zip |
KYRA: Allow user to cancel saving in EoB via ESC.
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/gui_eob.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/kyra/gui_eob.cpp b/engines/kyra/gui_eob.cpp index 4f241e785d..1c827e2802 100644 --- a/engines/kyra/gui_eob.cpp +++ b/engines/kyra/gui_eob.cpp @@ -2705,11 +2705,20 @@ bool GUI_EoB::runSaveMenu(int x, int y) { for (int in = -1; in == -1 && !_vm->shouldQuit();) { _screen->fillRect(fx - 2, fy, fx + 160, fy + 8, _vm->guiSettings()->colors.fill); in = getTextInput(_saveSlotStringsTemp[slot], x + 1, fy, 19, 2, 0, 8); + if (in == -1) { + useSlot = false; + break; + } + if (!strlen(_saveSlotStringsTemp[slot])) { messageDialogue(11, 54, 6); in = -1; } - }; + } + + if (!useSlot) { + continue; + } _screen->fillRect(fx - 2, fy, fx + 160, fy + 8, _vm->guiSettings()->colors.fill); _screen->printShadedText(_saveSlotStringsTemp[slot], (x + 1) << 3, fy, 15, 0); |