mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
Merge pull request #5372 from npwoods/skip_mandatory_fileman
Created a -skip_mandatory_fileman option
This commit is contained in:
commit
cf3c099ef9
@ -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)" },
|
||||
|
@ -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); }
|
||||
|
@ -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<osd_options &>(machine().options()).video(), "none") == 0;
|
||||
|
||||
// disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
|
||||
|
Loading…
Reference in New Issue
Block a user