[ scummvm-Feature Requests-1731025 ] "confirm exit" dialog

SourceForge.net noreply at sourceforge.net
Mon Jun 4 23:12:50 CEST 2007


Feature Requests item #1731025, was opened at 2007-06-04 23:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418823&aid=1731025&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Max Horn (fingolfin)
Assigned to: Nobody/Anonymous (nobody)
Summary: "confirm exit" dialog

Initial Comment:
Right now, the SCUMM engine uses an undocument config switch: confirm_exit which if set to true, cause a "Do you really want to exit Y/N" dialog to appear when a quit event is received, giving the user a chance to reconsider.

It is unfortunate that this is only implemented in the SCUMM engine. I propose that either we ditch it completely, or we move it to a full & proper feature. That would mean:
* document it
* make it work in all engines, even the launcher
* add it to the global option dialog (IMO, only to the global one, I really don't think it'd be very useful to configure this per-game)

The questions is how to make it work consistently everywhere. One way would be to add the code to the backend (at least the SDL one) -- so just before firing a QUIT event, pop up the dialog (if "confirm_exit" is set to true). This would guarantee consistent behavior across all engines and also in the launcher.

Drawback: It won't work for "custom" quit code in engines. However, since the main reason for the confirmation dialog is to protect from accidental key presses (like pressing Alt-X in the "Leisure Suite Larry" games), this would likely not be a big problem.

However, if we *do* think it would be important to handle these cases, that would be possible, too. Just add the confirmation dialog into a file in gui/, then it can be used from any part of our code base.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418823&aid=1731025&group_id=37116




More information about the Scummvm-tracker mailing list