mirror of
https://github.com/holub/mame
synced 2025-05-14 09:58:14 +03:00
Added full device names in slotlist (no whatsnew)
This commit is contained in:
parent
d7d7aafcb3
commit
4c7857dcc8
@ -638,8 +638,8 @@ void cli_frontend::listslots(const char *gamename)
|
|||||||
throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "No matching games found for '%s'", gamename);
|
throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "No matching games found for '%s'", gamename);
|
||||||
|
|
||||||
// print header
|
// print header
|
||||||
printf(" SYSTEM SLOT NAME SLOT OPTIONS SUPPORTED \n");
|
printf(" SYSTEM SLOT NAME SLOT OPTIONS SLOT DEVICE NAME \n");
|
||||||
printf("---------- -------------------- ------------------------------------\n");
|
printf("---------- ----------- -------------- ----------------------\n");
|
||||||
|
|
||||||
// iterate over drivers
|
// iterate over drivers
|
||||||
while (drivlist.next())
|
while (drivlist.next())
|
||||||
@ -650,19 +650,21 @@ void cli_frontend::listslots(const char *gamename)
|
|||||||
for (bool gotone = drivlist.config().devicelist().first(slot); gotone; gotone = slot->next(slot))
|
for (bool gotone = drivlist.config().devicelist().first(slot); gotone; gotone = slot->next(slot))
|
||||||
{
|
{
|
||||||
// output the line, up to the list of extensions
|
// output the line, up to the list of extensions
|
||||||
printf("%-13s%-20s ", first ? drivlist.driver().name : "", slot->device().tag());
|
printf("%-13s%-10s ", first ? drivlist.driver().name : "", slot->device().tag());
|
||||||
|
|
||||||
// get the options and print them
|
// get the options and print them
|
||||||
const slot_interface* intf = slot->get_slot_interfaces();
|
const slot_interface* intf = slot->get_slot_interfaces();
|
||||||
for (int i = 0; intf[i].name != NULL; i++)
|
for (int i = 0; intf[i].name != NULL; i++)
|
||||||
{
|
{
|
||||||
|
device_t *dev = (*intf[i].devtype)(drivlist.config(), "dummy", drivlist.config().devicelist().first(), 0);
|
||||||
|
dev->config_complete();
|
||||||
if (i==0) {
|
if (i==0) {
|
||||||
printf("%s\n", intf[i].name);
|
printf("%-15s %s\n", intf[i].name,dev->name());
|
||||||
} else {
|
} else {
|
||||||
printf("%-33s %s\n", "",intf[i].name);
|
printf("%-23s %-15s %s\n", "",intf[i].name,dev->name());
|
||||||
}
|
}
|
||||||
|
global_free(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
// end the line
|
// end the line
|
||||||
printf("\n");
|
printf("\n");
|
||||||
first = false;
|
first = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user