src/emu/clifront.c
| r12598 | r12599 | |
| 638 | 638 | throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "No matching games found for '%s'", gamename); |
| 639 | 639 | |
| 640 | 640 | // print header |
| 641 | | printf(" SYSTEM SLOT NAME SLOT OPTIONS SUPPORTED \n"); |
| 642 | | printf("---------- -------------------- ------------------------------------\n"); |
| 641 | printf(" SYSTEM SLOT NAME SLOT OPTIONS SLOT DEVICE NAME \n"); |
| 642 | printf("---------- ----------- -------------- ----------------------\n"); |
| 643 | 643 | |
| 644 | 644 | // iterate over drivers |
| 645 | 645 | while (drivlist.next()) |
| r12598 | r12599 | |
| 650 | 650 | for (bool gotone = drivlist.config().devicelist().first(slot); gotone; gotone = slot->next(slot)) |
| 651 | 651 | { |
| 652 | 652 | // output the line, up to the list of extensions |
| 653 | | printf("%-13s%-20s ", first ? drivlist.driver().name : "", slot->device().tag()); |
| 653 | printf("%-13s%-10s ", first ? drivlist.driver().name : "", slot->device().tag()); |
| 654 | 654 | |
| 655 | 655 | // get the options and print them |
| 656 | 656 | const slot_interface* intf = slot->get_slot_interfaces(); |
| 657 | 657 | for (int i = 0; intf[i].name != NULL; i++) |
| 658 | 658 | { |
| 659 | device_t *dev = (*intf[i].devtype)(drivlist.config(), "dummy", drivlist.config().devicelist().first(), 0); |
| 660 | dev->config_complete(); |
| 659 | 661 | if (i==0) { |
| 660 | | printf("%s\n", intf[i].name); |
| 662 | printf("%-15s %s\n", intf[i].name,dev->name()); |
| 661 | 663 | } else { |
| 662 | | printf("%-33s %s\n", "",intf[i].name); |
| 664 | printf("%-23s %-15s %s\n", "",intf[i].name,dev->name()); |
| 663 | 665 | } |
| 666 | global_free(dev); |
| 664 | 667 | } |
| 665 | | |
| 666 | 668 | // end the line |
| 667 | 669 | printf("\n"); |
| 668 | 670 | first = false; |