aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-29 01:39:34 +0200
committerThierry Crozat2018-01-23 02:00:59 +0000
commit0ffd0059957795f70064654804edb8f2eb5e9e1b (patch)
tree3f76819ec16d8277cced047f7af55e43688069cf
parent82efa9dd65601d10ce9caaa7cbb384cf468c3f62 (diff)
downloadscummvm-rg350-0ffd0059957795f70064654804edb8f2eb5e9e1b.tar.gz
scummvm-rg350-0ffd0059957795f70064654804edb8f2eb5e9e1b.tar.bz2
scummvm-rg350-0ffd0059957795f70064654804edb8f2eb5e9e1b.zip
SUPERNOVA: Adds message prompt on exit
-rw-r--r--engines/supernova/state.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index f5a6a17c1c..5b3e736902 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -438,7 +438,12 @@ void GameManager::processInput(Common::KeyState &state) {
case Common::KEYCODE_x:
if (state.flags & Common::KBD_ALT) {
// quit game
- _vm->quitGame();
+ GUI::MessageDialog *dialog = new GUI::MessageDialog("Quit Game?", "Quit", "Cancel");
+ if (dialog->runModal() == GUI::kMessageOK)
+ _vm->quitGame();
+ delete dialog;
+
+ // TODO: Add original quit game message prompt
}
break;
default: