src/emu/dislot.c
| r14167 | r14168 | |
| 37 | 37 | } else { |
| 38 | 38 | subtag = device().mconfig().options().value(device().tag()); |
| 39 | 39 | } |
| 40 | | if (subtag) { |
| 40 | if (subtag && strlen(subtag)>0) { |
| 41 | 41 | device_slot_card_interface *intf = NULL; |
| 42 | 42 | dev = device().subdevice(subtag); |
| 43 | 43 | if (dev!=NULL && !dev->interface(intf)) |
| 44 | | throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface", dev->tag()); |
| 44 | throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface tag %s", dev->tag(),subtag); |
| 45 | 45 | } |
| 46 | 46 | return dev; |
| 47 | 47 | } |