mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
frontend: Added a few more driver flags to -listxml output. (#7731)
This commit is contained in:
parent
2162d541f0
commit
557cef8352
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user