diff options
author | 2010-06-29 13:47:46 +0000 | |
---|---|---|
committer | 2010-06-29 13:47:46 +0000 | |
commit | 83b96c81eeea58f1791c4d7715ef3421ee590b81 (patch) | |
tree | 489f47b569db61e6506d458bf8584c95c3ae6b9a /src/emu/diimage.c | |
parent | 4054f61980207a57945f2a6725476eac6e5133d1 (diff) |
Added new static call in diimage and added call to initialize subdevices for image device (no whatsnew)
Diffstat (limited to 'src/emu/diimage.c')
-rw-r--r-- | src/emu/diimage.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/diimage.c b/src/emu/diimage.c index a437449647f..d2aa51b879f 100644 --- a/src/emu/diimage.c +++ b/src/emu/diimage.c @@ -122,6 +122,21 @@ const char *device_config_image_interface::device_brieftypename(iodevice_t type) return (info != NULL) ? info->m_shortname : NULL; } +//------------------------------------------------- +// device_typeid - retrieves device type id +//------------------------------------------------- + +iodevice_t device_config_image_interface::device_typeid(const char *name) +{ + int i; + for (i = 0; i < ARRAY_LENGTH(device_config_image_interface::m_device_info_array); i++) + { + if (!mame_stricmp(name, m_device_info_array[i].m_name) || !mame_stricmp(name, m_device_info_array[i].m_shortname)) + return m_device_info_array[i].m_type; + } + return (iodevice_t)-1; +} + /*------------------------------------------------- device_compute_hash - compute a hash, using this device's partial hash if appropriate |