src/mess/device.c
| r2154 | r2155 | |
| 306 | 306 | /* create one MAME device for each of these */ |
| 307 | 307 | for (i = 0; i < count; i++) |
| 308 | 308 | { |
| 309 | | /* determine the tag */ |
| 309 | /* determine the legacy MESS device tag */ |
| 310 | 310 | mess_tag = mess_device_get_info_string(&mess_devclass, MESS_DEVINFO_STR_DEV_TAG); |
| 311 | |
| 312 | /* create a MAME device tag based on it */ |
| 311 | 313 | if (mess_tag != NULL) |
| 312 | 314 | { |
| 313 | 315 | snprintf(dynamic_tag, ARRAY_LENGTH(dynamic_tag), "%s_%d", mess_tag, i); |
| r2154 | r2155 | |
| 324 | 326 | device = device_list_add(listheadptr, MESS_DEVICE, mame_tag); |
| 325 | 327 | mess_device = (mess_device_config *) device->inline_config; |
| 326 | 328 | |
| 329 | /* we need to copy the mess_tag into the structure */ |
| 330 | info_string = mess_tag; |
| 331 | mess_tag = string_buffer_putstr(mess_device->string_buffer, ARRAY_LENGTH(mess_device->string_buffer), &string_buffer_pos, info_string); |
| 332 | |
| 327 | 333 | /* convert file extensions from comma delimited to null delimited */ |
| 328 | 334 | file_extensions = mess_device_get_info_string(&mess_devclass, MESS_DEVINFO_STR_FILE_EXTENSIONS); |
| 329 | 335 | if (file_extensions != NULL) |