src/emu/image.c
| r14551 | r14552 | |
| 470 | 470 | if (filerr == FILERR_NONE) |
| 471 | 471 | file.write(buffer, length); |
| 472 | 472 | } |
| 473 | | |
| 474 | | /*------------------------------------------------- |
| 475 | | image_from_absolute_index - retreives index number |
| 476 | | of image in device list |
| 477 | | -------------------------------------------------*/ |
| 478 | | device_image_interface *image_from_absolute_index(running_machine &machine, int absolute_index) |
| 479 | | { |
| 480 | | image_interface_iterator iter(machine.root_device()); |
| 481 | | return iter.byindex(absolute_index); |
| 482 | | } |
| 483 | | |
| 484 | | /*------------------------------------------------- |
| 485 | | image_add_device_with_subdevices - adds |
| 486 | | device with parameters sent, and all subdevices |
| 487 | | from it's machine config devices list |
| 488 | | -------------------------------------------------*/ |
| 489 | | void image_add_device_with_subdevices(device_t *owner, device_type type, const char *tag, UINT32 clock) |
| 490 | | { |
| 491 | | owner->machine().add_dynamic_device(*owner, type, tag, clock); |
| 492 | | } |