summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/infoxml.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-12-31 11:57:50 +1100
committer Vas Crabb <vas@vastheman.com>2019-12-31 11:57:50 +1100
commit56282074cb5225c87d1c0e0445fec6861d163e5d (patch)
tree33905e0e3779dbbd6f026afcaf39c2b5e4ab8a66 /src/frontend/mame/infoxml.cpp
parent563a2b209582f07175f68b5abf495e6bacb95305 (diff)
(nw) the software list device is identified by its tag, the name is tells you which list it will load
XML attributes are order-insensitive - compliant validators (e.g. libxml2's xmllint) accepted the XML how it was before. It would be better if parsers didn't enforce rules that don't exist.
Diffstat (limited to 'src/frontend/mame/infoxml.cpp')
-rw-r--r--src/frontend/mame/infoxml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/infoxml.cpp b/src/frontend/mame/infoxml.cpp
index f0b5ede5f3d..c4b3c977b6e 100644
--- a/src/frontend/mame/infoxml.cpp
+++ b/src/frontend/mame/infoxml.cpp
@@ -239,8 +239,8 @@ static const char s_dtd_string[] =
"\t\t\t\t<!ATTLIST slotoption devname CDATA #REQUIRED>\n"
"\t\t\t\t<!ATTLIST slotoption default (yes|no) \"no\">\n"
"\t\t<!ELEMENT softwarelist EMPTY>\n"
-"\t\t\t<!ATTLIST softwarelist name CDATA #REQUIRED>\n"
"\t\t\t<!ATTLIST softwarelist tag CDATA #REQUIRED>\n"
+"\t\t\t<!ATTLIST softwarelist name CDATA #REQUIRED>\n"
"\t\t\t<!ATTLIST softwarelist status (original|compatible) #REQUIRED>\n"
"\t\t\t<!ATTLIST softwarelist filter CDATA #IMPLIED>\n"
"\t\t<!ELEMENT ramoption (#PCDATA)>\n"
@@ -1950,7 +1950,7 @@ void output_software_lists(std::ostream &out, device_t &root, const char *root_t
std::string newtag(swlist.tag()), oldtag(":");
newtag = newtag.substr(newtag.find(oldtag.append(root_tag)) + oldtag.length());
- out << util::string_format("\t\t<softwarelist name=\"%s\" tag=\"%s\" status=\"%s\"", normalize_string(swlist.list_name().c_str()), normalize_string(newtag.c_str()), swlist.is_original() ? "original" : "compatible");
+ out << util::string_format("\t\t<softwarelist tag=\"%s\" name=\"%s\" status=\"%s\"", normalize_string(newtag.c_str()), normalize_string(swlist.list_name().c_str()), swlist.is_original() ? "original" : "compatible");
if (swlist.filter())
out << util::string_format(" filter=\"%s\"", normalize_string(swlist.filter()));