[Scummvm-cvs-logs] SF.net SVN: scummvm:[35003] scummvm/trunk/backends/events/default/ default-events.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Nov 11 13:28:47 CET 2008
Revision: 35003
http://scummvm.svn.sourceforge.net/scummvm/?rev=35003&view=rev
Author: fingolfin
Date: 2008-11-11 12:28:46 +0000 (Tue, 11 Nov 2008)
Log Message:
-----------
If confirm_exit is set, also ask the user if he really wants to return to the launcher (after all, as with quit, all data is lost)
Modified Paths:
--------------
scummvm/trunk/backends/events/default/default-events.cpp
Modified: scummvm/trunk/backends/events/default/default-events.cpp
===================================================================
--- scummvm/trunk/backends/events/default/default-events.cpp 2008-11-11 12:13:55 UTC (rev 35002)
+++ scummvm/trunk/backends/events/default/default-events.cpp 2008-11-11 12:28:46 UTC (rev 35003)
@@ -469,14 +469,22 @@
break;
case Common::EVENT_RTL:
- _shouldRTL = true;
+ if (ConfMan.getBool("confirm_exit")) {
+ if (g_engine)
+ g_engine->pauseEngine(true);
+ GUI::MessageDialog alert("Do you really want to return to the Launcher?", "Launcher", "Cancel");
+ result = _shouldRTL = (alert.runModal() == GUI::kMessageOK);
+ if (g_engine)
+ g_engine->pauseEngine(false);
+ } else
+ _shouldRTL = true;
break;
case Common::EVENT_QUIT:
if (ConfMan.getBool("confirm_exit")) {
if (g_engine)
g_engine->pauseEngine(true);
- GUI::MessageDialog alert("Do you really want to quit?", "Yes", "No");
+ GUI::MessageDialog alert("Do you really want to quit?", "Quit", "Cancel");
result = _shouldQuit = (alert.runModal() == GUI::kMessageOK);
if (g_engine)
g_engine->pauseEngine(false);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list