Previous 199869 Revisions Next

r34490 Monday 19th January, 2015 at 05:36:15 UTC by Fabio Priuli
ui: allow -str run to skip the file manager for systems with mandatory carts. nw.
[src/emu/ui]ui.c

trunk/src/emu/ui/ui.c
r243001r243002
310310   const int maxstate = 4;
311311   int str = machine().options().seconds_to_run();
312312   bool show_gameinfo = !machine().options().skip_gameinfo();
313   bool show_warnings = true;
313   bool show_warnings = true, show_mandatory_fileman = true;
314314   int state;
315315
316316   // disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
317317   // or if we are debugging
318318   if (!first_time || (str > 0 && str < 60*5) || &machine().system() == &GAME_NAME(___empty) || (machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
319      show_gameinfo = show_warnings = show_disclaimer = FALSE;
319      show_gameinfo = show_warnings = show_disclaimer = show_mandatory_fileman = FALSE;
320320
321321   #ifdef SDLMAME_EMSCRIPTEN
322322   // also disable for the JavaScript port since the startup screens do not run asynchronously
r243001r243002
355355            break;
356356
357357         case 3:
358            if (image_mandatory_scan(machine(), messagebox_text).len() > 0)
358            if (show_mandatory_fileman && image_mandatory_scan(machine(), messagebox_text).len() > 0)
359359            {
360360               astring warning;
361361               warning.cpy("This driver requires images to be loaded in the following device(s): ").cat(messagebox_text.substr(0, messagebox_text.len() - 2));


Previous 199869 Revisions Next


© 1997-2024 The MAME Team