Made options visible to device validate function when doing "-validate", this is used by MESS (example software list and messram devices) (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2010-09-01 09:34:55 +00:00
parent f6b83b62c5
commit dbf7afe106
3 changed files with 15 additions and 0 deletions

View File

@ -240,6 +240,7 @@ static int execute_simple_commands(core_options *options, const char *exename)
/* validate? */
if (options_get_bool(options, CLIOPTION_VALIDATE))
{
set_mame_options(options);
return mame_validitychecks(NULL);
}

View File

@ -237,6 +237,17 @@ core_options *mame_options(void)
/*-------------------------------------------------
set_mame_options - set mame options, used by
validate option
-------------------------------------------------*/
void set_mame_options(core_options *options)
{
mame_opts = options;
}
/***************************************************************************
OUTPUT MANAGEMENT
***************************************************************************/

View File

@ -101,6 +101,9 @@ int mame_execute(core_options *options);
/* accesses the core_options for the currently running emulation */
core_options *mame_options(void);
/* set mame options, used by validate option */
void set_mame_options(core_options *options);
/* return true if the given machine is valid */
int mame_is_valid_machine(running_machine *machine);