diff options
author | 2011-06-03 16:38:05 +0000 | |
---|---|---|
committer | 2011-06-03 16:38:05 +0000 | |
commit | 2082b37969d28509cf7898b81500ea62ee498f93 (patch) | |
tree | 325ce7a83becf6d63e89ee081e7ecda54fd9de00 /src/emu/emuopts.h | |
parent | ad8a4985f9902b1246026abb195dd1a68b96bd2b (diff) |
emuopts: added confirm_quit option (defaults to off). when on, pressing ESC you are prompted with
a 'confirm quit' screen rather than directly quit emulation. [MamePlus Team, Mamesick, Fabio Priuli]
out of whatsnew: feel free to suggest a better quit message, if you don't like the one I added.
Diffstat (limited to 'src/emu/emuopts.h')
-rw-r--r-- | src/emu/emuopts.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/emuopts.h b/src/emu/emuopts.h index 470e526c4f3..13149d2b1c7 100644 --- a/src/emu/emuopts.h +++ b/src/emu/emuopts.h @@ -192,6 +192,7 @@ enum #define OPTION_UI_FONT "uifont" #define OPTION_RAMSIZE "ramsize" +#define OPTION_CONFIRM_QUIT "confirm_quit" //************************************************************************** @@ -339,6 +340,8 @@ public: const char *ui_font() const { return value(OPTION_UI_FONT); } const char *ram_size() const { return value(OPTION_RAMSIZE); } + bool confirm_quit() const { return bool_value(OPTION_CONFIRM_QUIT); } + // device-specific options const char *device_option(device_image_interface &image); |