summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-07-18 10:12:42 -0400
committer GitHub <noreply@github.com>2019-07-18 10:12:42 -0400
commit0a64af3c7b96eedd8f1b794364105b66d1b0091f (patch)
tree4b8c907d9c7cf034580a207fa781d3c51407265b
parent9066b9baf60289a0d5034203cdf0d4271a38bfe0 (diff)
parentb3ffc106711a749a551fcb79e79b49fc19d6aac2 (diff)
Merge pull request #5348 from vadosnaprimer/video_none
Disable UI startup screens for "-video none"
-rw-r--r--src/frontend/mame/ui/ui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp
index b27bae8b972..62b84281b02 100644
--- a/src/frontend/mame/ui/ui.cpp
+++ b/src/frontend/mame/ui/ui.cpp
@@ -30,6 +30,7 @@
#include "ui/state.h"
#include "ui/viewgfx.h"
#include "imagedev/cassette.h"
+#include "../osd/modules/lib/osdobj_common.h"
/***************************************************************************
@@ -283,10 +284,11 @@ void mame_ui_manager::display_startup_screens(bool first_time)
int str = machine().options().seconds_to_run();
bool show_gameinfo = !machine().options().skip_gameinfo();
bool show_warnings = true, show_mandatory_fileman = true;
+ 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,
- // or if we are debugging
- if (!first_time || (str > 0 && str < 60*5) || &machine().system() == &GAME_NAME(___empty) || (machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
+ // or if we are debugging, or if there's no mame window to send inputs to
+ if (!first_time || (str > 0 && str < 60*5) || &machine().system() == &GAME_NAME(___empty) || (machine().debug_flags & DEBUG_FLAG_ENABLED) != 0 || video_none)
show_gameinfo = show_warnings = show_mandatory_fileman = false;
#if defined(EMSCRIPTEN)