From cd42885b174c75c41658d3f752eff3208645d995 Mon Sep 17 00:00:00 2001 From: npwoods Date: Sun, 21 Jul 2019 15:19:38 -0400 Subject: [PATCH] Created a -skip_mandatory_fileman option --- src/emu/emuopts.cpp | 1 + src/emu/emuopts.h | 2 ++ src/frontend/mame/ui/ui.cpp | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/emu/emuopts.cpp b/src/emu/emuopts.cpp index c99748e67de..e2beaf0089d 100644 --- a/src/emu/emuopts.cpp +++ b/src/emu/emuopts.cpp @@ -193,6 +193,7 @@ const options_entry emu_options::s_option_entries[] = { OPTION_BIOS, nullptr, OPTION_STRING, "select the system BIOS to use" }, { OPTION_CHEAT ";c", "0", OPTION_BOOLEAN, "enable cheat subsystem" }, { OPTION_SKIP_GAMEINFO, "0", OPTION_BOOLEAN, "skip displaying the system information screen at startup" }, + { OPTION_SKIP_MANDATORY_FILEMAN, "0", OPTION_BOOLEAN, "skip prompting the user for any mandatory images with the file manager at startup" }, { OPTION_UI_FONT, "default", OPTION_STRING, "specify a font to use" }, { OPTION_UI, "cabinet", OPTION_STRING, "type of UI (simple|cabinet)" }, { OPTION_RAMSIZE ";ram", nullptr, OPTION_STRING, "size of RAM (if supported by driver)" }, diff --git a/src/emu/emuopts.h b/src/emu/emuopts.h index a619b51a65c..89f33b8406d 100644 --- a/src/emu/emuopts.h +++ b/src/emu/emuopts.h @@ -162,6 +162,7 @@ #define OPTION_BIOS "bios" #define OPTION_CHEAT "cheat" #define OPTION_SKIP_GAMEINFO "skip_gameinfo" +#define OPTION_SKIP_MANDATORY_FILEMAN "skip_mandatory_fileman" #define OPTION_UI_FONT "uifont" #define OPTION_UI "ui" #define OPTION_RAMSIZE "ramsize" @@ -437,6 +438,7 @@ public: const char *bios() const { return value(OPTION_BIOS); } bool cheat() const { return bool_value(OPTION_CHEAT); } bool skip_gameinfo() const { return bool_value(OPTION_SKIP_GAMEINFO); } + bool skip_mandatory_fileman() const { return bool_value(OPTION_SKIP_MANDATORY_FILEMAN); } const char *ui_font() const { return value(OPTION_UI_FONT); } ui_option ui() const { return m_ui; } const char *ram_size() const { return value(OPTION_RAMSIZE); } diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index 867a7b8bbf8..e3d48c13be1 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -283,7 +283,7 @@ void mame_ui_manager::display_startup_screens(bool first_time) const int maxstate = 3; int str = machine().options().seconds_to_run(); bool show_gameinfo = !machine().options().skip_gameinfo(); - bool show_warnings = true, show_mandatory_fileman = true; + bool show_warnings = true, show_mandatory_fileman = !machine().options().skip_mandatory_fileman(); bool video_none = strcmp(downcast(machine().options()).video(), "none") == 0; // disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,