Previous 15994 Revisions Next

r7303 Wednesday 10th February, 2010 at 10:26:15 UTC by Miodrag Milanović
Moved skip_warnings option to MAME
[src/emu]emuopts.c emuopts.h ui.c
[src/mess]messopts.c messopts.h

src/emu/emuopts.c
r7302r7303
154154   { "bios",                        NULL,        0,                 "select the system BIOS to use" },
155155   { "cheat;c",                     "0",         OPTION_BOOLEAN,    "enable cheat subsystem" },
156156   { "skip_gameinfo",               "0",         OPTION_BOOLEAN,    "skip displaying the information screen at startup" },
157   { "skip_warnings",               "0",         OPTION_BOOLEAN,    "skip displaying the warnings screen" },
157158
158159   { NULL }
159160};
src/emu/emuopts.h
r7302r7303
150150#define OPTION_BIOS               "bios"
151151#define OPTION_CHEAT            "cheat"
152152#define OPTION_SKIP_GAMEINFO      "skip_gameinfo"
153#define OPTION_SKIP_WARNINGS      "skip_warnings"
153154
154155
155156
src/emu/ui.c
r7302r7303
231231
232232int ui_display_startup_screens(running_machine *machine, int first_time, int show_disclaimer)
233233{
234#ifdef MESS
235   const int maxstate = 4;
236#else
237234   const int maxstate = 3;
238#endif
239235   int str = options_get_int(mame_options(), OPTION_SECONDS_TO_RUN);
240236   int show_gameinfo = !options_get_bool(mame_options(), OPTION_SKIP_GAMEINFO);
241237   int show_warnings = TRUE;
242238   int state;
243239
244#ifdef MESS
245240   show_warnings = !options_get_bool(mame_options(), OPTION_SKIP_WARNINGS);
246241   if (!show_warnings)
247242      show_disclaimer = FALSE;
248#endif /* MESS */
249243
250244   /* disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
251245       or if we are debugging */
r7302r7303
285279            if (show_gameinfo && game_info_astring(machine, messagebox_text).len() > 0)
286280               ui_set_handler(handler_messagebox_anykey, 0);
287281            break;
288#ifdef MESS
289         case 3:
290            break;
291#endif
292282      }
293283
294284      /* clear the input memory */
src/mess/messopts.c
r7302r7303
3535   { NULL,                     NULL,   OPTION_HEADER,                  "MESS SPECIFIC OPTIONS" },
3636   { "ramsize;ram",            NULL,   0,                           "size of RAM (if supported by driver)" },
3737   { "writeconfig;wc",            "0",   OPTION_BOOLEAN,                  "writes configuration to (driver).ini on exit" },
38   { OPTION_SKIP_WARNINGS,         "0",    OPTION_BOOLEAN,                  "skip displaying the warnings screen" },
3938   { OPTION_ADDED_DEVICE_OPTIONS,   "0",   OPTION_BOOLEAN | OPTION_INTERNAL,   "device-specific options have been added" },
4039   { "natural;nat",            "0",   OPTION_BOOLEAN,                  "specifies whether to use a natural keyboard or not" },
4140   { NULL }
src/mess/messopts.h
r7302r7303
1515
1616#define OPTION_RAMSIZE         "ramsize"
1717#define OPTION_WRITECONFIG      "writeconfig"
18#define OPTION_SKIP_WARNINGS   "skip_warnings"
1918#define OPTION_NATURAL_KEYBOARD   "natural"
2019
2120

Previous 15994 Revisions Next


© 1998-2018 The MESS Team