Placed flag removal on machine destructor, fixes issue from r9779 (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2010-07-21 16:23:27 +00:00
parent 270627e1b9
commit 2b81a7d1fe
2 changed files with 2 additions and 4 deletions

View File

@ -225,6 +225,8 @@ running_machine::running_machine(const game_driver &driver, const machine_config
running_machine::~running_machine()
{
/* clear flag for added devices */
options_set_bool(&m_options, OPTION_ADDED_DEVICE_OPTIONS, FALSE, OPTION_PRIORITY_CMDLINE);
}

View File

@ -564,9 +564,6 @@ static int parse_ini_file(core_options *options, const char *name, int priority)
filerr = mame_fopen_options(options, SEARCHPATH_INI, fname, OPEN_FLAG_READ, &file);
if (filerr != FILERR_NONE)
return FALSE;
/* clear flag for added devices */
options_set_bool(options, OPTION_ADDED_DEVICE_OPTIONS, FALSE, OPTION_PRIORITY_CMDLINE);
/* update game name so depending callback options could be added */
if (priority==OPTION_PRIORITY_DRIVER_INI) {
@ -574,7 +571,6 @@ static int parse_ini_file(core_options *options, const char *name, int priority)
}
/* parse the file and close it */
mame_printf_verbose("Parsing %s.ini\n", name);
options_parse_ini_file(options, mame_core_file(file), priority);
mame_fclose(file);
return TRUE;