diff --git a/src/emu/info.c b/src/emu/info.c index 15f47742011..4070a22f126 100644 --- a/src/emu/info.c +++ b/src/emu/info.c @@ -58,7 +58,7 @@ const char info_xml_creator::s_dtd_string[] = "\t\n" "\t\n" "\t\n" -"\t\n" +"\t\n" "\t\t\n" "\t\t\n" "\t\t\n" @@ -175,6 +175,11 @@ const char info_xml_creator::s_dtd_string[] = "\t\t\t\t\n" "\t\t\t\n" "\t\t\t\t\n" +"\t\t\n" +"\t\t\t\n" +"\t\t\t\n" +"\t\t\t\t\n" +"\t\t\t\t\n" "\t\t\n" "\t\t\t\n" "\t\t\t\n" @@ -309,6 +314,7 @@ void info_xml_creator::output_one() output_adjusters(portlist); output_driver(); output_images(); + output_slots(); output_software_list(); output_ramoptions(); @@ -1075,6 +1081,41 @@ void info_xml_creator::output_images() } +//------------------------------------------------- +// output_images - prints all info about slots +//------------------------------------------------- + +void info_xml_creator::output_slots() +{ + const device_slot_interface *slot = NULL; + for (bool gotone = m_drivlist.config().devicelist().first(slot); gotone; gotone = slot->next(slot)) + { + // print m_output device type + fprintf(m_output, "\t\t\n", xml_normalize_string(slot->device().tag())); + + /* + if (slot->slot_interface()[0]) + fprintf(m_output, " interface=\"%s\"", xml_normalize_string(slot->slot_interface())); + */ + + const slot_interface* intf = slot->get_slot_interfaces(); + for (int i = 0; intf[i].name != NULL; i++) + { + fprintf(m_output, "\t\t\tget_default_card()) + { + if (slot->get_default_card() == intf[i].name) + fprintf(m_output, " default=\"yes\""); + } + fprintf(m_output, "/>\n"); + } + + fprintf(m_output, "\t\t\n"); + } +} + + //------------------------------------------------- // output_software_list - print the information // for all known software lists for this system diff --git a/src/emu/info.h b/src/emu/info.h index 21e028cb007..1bbfc7274be 100644 --- a/src/emu/info.h +++ b/src/emu/info.h @@ -73,6 +73,7 @@ private: void output_categories(const ioport_list &portlist); void output_driver(); void output_images(); + void output_slots(); void output_software_list(); void output_ramoptions();