Previous 15994 Revisions Next

r6930 Tuesday 5th January, 2010 at 10:40:06 UTC by Wilbert Pol
Added software list support to devices/cartslot.
[src/mess/devices]cartslot.c

src/mess/devices/cartslot.c
r6929r6930
332332   multicart *mc;
333333   int i;
334334
335   if (image_exists(device))
335   if (image_software_entry(device) == NULL && image_exists(device))
336336   {
337337      /* try opening this as if it were a multicart */
338338      multicart_open_error me = multicart_open(image_filename(device), device->machine->gamedrv->name, MULTICART_FLAGS_DONT_LOAD_RESOURCES, &mc);
r6929r6930
454454            strcpy(info->s, "bin");
455455         }
456456         break;
457      case DEVINFO_STR_SOFTWARE_LIST:
458         if ( device && device->inline_config && get_config(device)->software_list_name )
459         {
460            strcpy(info->s, get_config(device)->software_list_name );
461         }
462         break;
457463   }
458464}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team