Previous 15994 Revisions Next

r8989 Wednesday 1st September, 2010 at 08:07:22 UTC by Miodrag Milanović
Made options visible to device validate function when doing "-validate"
[src/emu]clifront.c mame.c mame.h

src/emu/clifront.c
r8988r8989
240240   /* validate? */
241241   if (options_get_bool(options, CLIOPTION_VALIDATE))
242242   {
243      set_mame_options(options);
243244      return mame_validitychecks(NULL);
244245   }
245246
src/emu/mame.c
r8988r8989
237237
238238
239239
240/*-------------------------------------------------
241    set_mame_options - set mame options, used by
242   validate option
243-------------------------------------------------*/
244
245void set_mame_options(core_options *options)
246{
247   mame_opts = options;
248}
249
250
240251/***************************************************************************
241252    OUTPUT MANAGEMENT
242253***************************************************************************/
src/emu/mame.h
r8988r8989
101101/* accesses the core_options for the currently running emulation */
102102core_options *mame_options(void);
103103
104/* set mame options, used by validate option */
105void set_mame_options(core_options *options);
106
104107/* return true if the given machine is valid */
105108int mame_is_valid_machine(running_machine *machine);
106109

Previous 15994 Revisions Next


© 1998-2018 The MESS Team