Previous 15994 Revisions Next

r12599 Sunday 14th August, 2011 at 08:50:02 UTC by Miodrag Milanović
Added full device names in slotlist (no whatsnew)
[src/emu]clifront.c

src/emu/clifront.c
r12598r12599
638638      throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "No matching games found for '%s'", gamename);
639639
640640   // 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");
643643
644644   // iterate over drivers
645645   while (drivlist.next())
r12598r12599
650650      for (bool gotone = drivlist.config().devicelist().first(slot); gotone; gotone = slot->next(slot))
651651      {
652652         // 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());
654654
655655         // get the options and print them
656656         const slot_interface* intf = slot->get_slot_interfaces();
657657         for (int i = 0; intf[i].name != NULL; i++)
658658         {
659            device_t *dev = (*intf[i].devtype)(drivlist.config(), "dummy", drivlist.config().devicelist().first(), 0);
660            dev->config_complete();
659661            if (i==0) {
660               printf("%s\n", intf[i].name);
662               printf("%-15s %s\n", intf[i].name,dev->name());
661663            } else {
662               printf("%-33s   %s\n", "",intf[i].name);
664               printf("%-23s   %-15s %s\n", "",intf[i].name,dev->name());
663665            }
666            global_free(dev);
664667         }
665
666668         // end the line
667669         printf("\n");
668670         first = false;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team