summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/moptions.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-09-02 17:29:21 +1000
committer Vas Crabb <vas@vastheman.com>2020-09-02 17:41:34 +1000
commit9445f1d8311db820dc0984e85c9c1450ce1807cd (patch)
tree43ecc4e298615b8b8388dbe9df4440b53f461b32 /src/frontend/mame/ui/moptions.h
parent654b118ff985a4011bc0caf5ce8160fa80c4b9bf (diff)
frontend: Added option to skip repeated imperfect emulation warnings.
The option is called skip_warnings, and it must be set in ui.ini (it can be set using the internal UI). Red warnings cannot be skipped; yellow warning can be skipped under certain circumstances. For a yellow warning to be skipped, the system must have been launched in a way that allows warnings to be displayed, in a configuration with the same set of devices flagged with unemulated/imperfect features, within the last seven days, and the warning must have been displayed within the past 14 days. Also fixed a bug with display of the MACHINE_NO_COCKTAIL flag in the internal UI, and increased the size of XML integer attributes to 64 bits.
Diffstat (limited to 'src/frontend/mame/ui/moptions.h')
-rw-r--r--src/frontend/mame/ui/moptions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/moptions.h b/src/frontend/mame/ui/moptions.h
index ddfa3971c3b..67ce3eb63f9 100644
--- a/src/frontend/mame/ui/moptions.h
+++ b/src/frontend/mame/ui/moptions.h
@@ -38,6 +38,7 @@
#define OPTION_UI_PATH "ui_path"
// core misc options
+#define OPTION_SKIP_WARNINGS "skip_warnings"
#define OPTION_REMEMBER_LAST "remember_last"
#define OPTION_ENLARGE_SNAPS "enlarge_snaps"
#define OPTION_FORCED4X3 "forced4x3"
@@ -102,6 +103,7 @@ public:
const char *ui_path() const { return value(OPTION_UI_PATH); }
// Misc options
+ bool skip_warnings() const { return bool_value(OPTION_SKIP_WARNINGS); }
bool remember_last() const { return bool_value(OPTION_REMEMBER_LAST); }
bool enlarge_snaps() const { return bool_value(OPTION_ENLARGE_SNAPS); }
bool forced_4x3_snapshot() const { return bool_value(OPTION_FORCED4X3); }