src/emu/mame.c
| r8569 | r8570 | |
| 565 | 565 | if (filerr != FILERR_NONE) |
| 566 | 566 | return FALSE; |
| 567 | 567 | |
| 568 | /* clear flag for added devices */ |
| 569 | options_set_bool(options, OPTION_ADDED_DEVICE_OPTIONS, FALSE, OPTION_PRIORITY_CMDLINE); |
| 570 | |
| 568 | 571 | /* update game name so depending callback options could be added */ |
| 569 | | options_force_option_callback(options, OPTION_GAMENAME, name, OPTION_PRIORITY_CMDLINE); |
| 572 | if (priority==OPTION_PRIORITY_DRIVER_INI) { |
| 573 | options_force_option_callback(options, OPTION_GAMENAME, name, priority); |
| 574 | } |
| 570 | 575 | |
| 571 | 576 | /* parse the file and close it */ |
| 572 | | mame_printf_verbose("Parsing %s.ini\n", name); |
| 573 | 577 | options_parse_ini_file(options, mame_core_file(file), priority); |
| 574 | 578 | mame_fclose(file); |
| 575 | 579 | return TRUE; |