src/emu/uimain.c
| r15409 | r15410 | |
| 456 | 456 | const char *title = get_slot_device(slot); |
| 457 | 457 | // do no display fixed slots |
| 458 | 458 | if (slot->fixed()) title = slot->get_default_card(); |
| 459 | | |
| 459 | if (title==NULL) title = ""; |
| 460 | 460 | item_append(slot->device().tag()+1, strcmp(title,"")==0 ? "------" : title, slot->fixed() ? 0 : (MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW), (void *)slot); |
| 461 | 461 | } |
| 462 | 462 | item_append(MENU_SEPARATOR_ITEM, NULL, 0, NULL); |
| r15409 | r15410 | |
| 1177 | 1177 | ioport_field *field = (ioport_field *)selectedref; |
| 1178 | 1178 | dip_descriptor *dip; |
| 1179 | 1179 | |
| 1180 | | if (field!=NULL && field->first_diplocation() == NULL) |
| 1180 | if (field==NULL || field->first_diplocation() == NULL) |
| 1181 | 1181 | return; |
| 1182 | 1182 | |
| 1183 | 1183 | /* add borders */ |