Previous 15994 Revisions Next

r2155 Saturday 29th March, 2008 at 23:49:11 UTC by Nathan Woods
Fixed a regression in systems that used legacy MESS device tags
[src/mess]device.c

src/mess/device.c
r2154r2155
306306   /* create one MAME device for each of these */
307307   for (i = 0; i < count; i++)
308308   {
309      /* determine the tag */
309      /* determine the legacy MESS device tag */
310310      mess_tag = mess_device_get_info_string(&mess_devclass, MESS_DEVINFO_STR_DEV_TAG);
311
312      /* create a MAME device tag based on it */
311313      if (mess_tag != NULL)
312314      {
313315         snprintf(dynamic_tag, ARRAY_LENGTH(dynamic_tag), "%s_%d", mess_tag, i);
r2154r2155
324326      device = device_list_add(listheadptr, MESS_DEVICE, mame_tag);
325327      mess_device = (mess_device_config *) device->inline_config;
326328
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
327333      /* convert file extensions from comma delimited to null delimited */
328334      file_extensions = mess_device_get_info_string(&mess_devclass, MESS_DEVINFO_STR_FILE_EXTENSIONS);
329335      if (file_extensions != NULL)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team