mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
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:
parent
f6b83b62c5
commit
dbf7afe106
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
***************************************************************************/
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user