Previous 15994 Revisions Next

r14552 Monday 20th February, 2012 at 11:46:31 UTC by Miodrag Milanović
Removed some calls in image.c, note that add_dynamic_device is still used, it's still handy (no whatsnew)
[src/emu]image.c image.h

src/emu/image.c
r14551r14552
470470    if (filerr == FILERR_NONE)
471471        file.write(buffer, length);
472472}
473
474/*-------------------------------------------------
475    image_from_absolute_index - retreives index number
476    of image in device list
477-------------------------------------------------*/
478device_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-------------------------------------------------*/
489void 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}
src/emu/image.h
r14551r14552
2727void image_battery_save_by_name(emu_options &options, const char *filename, const void *buffer, int length);
2828
2929astring &image_info_astring(running_machine &machine, astring &string);
30
31device_image_interface *image_from_absolute_index(running_machine &machine, int absolute_index);
32
33void image_add_device_with_subdevices(device_t *owner, device_type type, const char *tag, UINT32 clock);
34
3530#endif /* __IMAGE_H__ */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team