summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2025-12-14 13:01:15 -0500
committer GitHub <noreply@github.com>2025-12-14 13:01:15 -0500
commitceb79083c19acc82c3c7526ff7bda63d9d858163 (patch)
tree292fb8b7d3bdbdae7ce0c7bcdebddabf9fb42cb7 /src
parentb0c8002d968fe3963453168d6f53a7dc58e37136 (diff)
Added `tag` attribute to Info XML `<device_ref>` elements (#14641)
* Added `tag` attribute to Info XML `<device_ref>` elements * Added entry in DTD for `<device_ref tag="...">`
Diffstat (limited to 'src')
-rw-r--r--src/frontend/mame/infoxml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/mame/infoxml.cpp b/src/frontend/mame/infoxml.cpp
index 750808403a5..69749de3a7b 100644
--- a/src/frontend/mame/infoxml.cpp
+++ b/src/frontend/mame/infoxml.cpp
@@ -208,6 +208,7 @@ constexpr char f_dtd_string[] =
"\t\t\t<!ATTLIST disk optional (yes|no) \"no\">\n"
"\t\t<!ELEMENT device_ref EMPTY>\n"
"\t\t\t<!ATTLIST device_ref name CDATA #REQUIRED>\n"
+ "\t\t\t<!ATTLIST device_ref tag CDATA #REQUIRED>\n"
"\t\t<!ELEMENT sample EMPTY>\n"
"\t\t\t<!ATTLIST sample name CDATA #REQUIRED>\n"
"\t\t<!ELEMENT chip EMPTY>\n"
@@ -1010,7 +1011,7 @@ void output_device_refs(std::ostream &out, device_t &root)
{
for (device_t &device : device_enumerator(root))
if (&device != &root)
- util::stream_format(out, "\t\t<device_ref name=\"%s\"/>\n", util::xml::normalize_string(device.shortname()));
+ util::stream_format(out, "\t\t<device_ref name=\"%s\" tag=\"%s\"/>\n", util::xml::normalize_string(device.shortname()), util::xml::normalize_string(device.tag()));
}