frontend: Added a few more driver flags to -listxml output. (#7731)

This commit is contained in:
npwoods 2021-02-18 07:38:05 -05:00 committed by GitHub
parent 2162d541f0
commit 557cef8352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,6 +220,10 @@ constexpr char f_dtd_string[] =
"\t\t\t<!ATTLIST driver emulation (good|imperfect|preliminary) #REQUIRED>\n"
"\t\t\t<!ATTLIST driver cocktail (good|imperfect|preliminary) #IMPLIED>\n"
"\t\t\t<!ATTLIST driver savestate (supported|unsupported) #REQUIRED>\n"
"\t\t\t<!ATTLIST driver requiresartwork (yes|no) \"no\">\n"
"\t\t\t<!ATTLIST driver unofficial (yes|no) \"no\">\n"
"\t\t\t<!ATTLIST driver nosoundhardware (yes|no) \"no\">\n"
"\t\t\t<!ATTLIST driver incomplete (yes|no) \"no\">\n"
"\t\t<!ELEMENT feature EMPTY>\n"
"\t\t\t<!ATTLIST feature type (protection|timing|graphics|palette|sound|capture|camera|microphone|controls|keyboard|mouse|media|disk|printer|tape|punch|drum|rom|comms|lan|wan) #REQUIRED>\n"
"\t\t\t<!ATTLIST feature status (unemulated|imperfect) #IMPLIED>\n"
@ -1809,6 +1813,18 @@ void output_driver(std::ostream &out, game_driver const &driver, device_t::featu
else
out << " savestate=\"unsupported\"";
if (flags & machine_flags::REQUIRES_ARTWORK)
out << " requiresartwork=\"yes\"";
if (flags & machine_flags::UNOFFICIAL)
out << " unofficial=\"yes\"";
if (flags & machine_flags::NO_SOUND_HW)
out << " nosoundhardware=\"yes\"";
if (flags & machine_flags::IS_INCOMPLETE)
out << " incomplete=\"yes\"";
out << "/>\n";
}