mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +03:00
only show RAM options that can actually be controlled from the command line - the others are practically useless (nw)
This commit is contained in:
parent
74aae78d0f
commit
d88486fa8f
@ -25,6 +25,7 @@
|
||||
#include "xmlfile.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
|
||||
|
||||
@ -1818,7 +1819,9 @@ void info_xml_creator::output_software_list(device_t &root)
|
||||
|
||||
void info_xml_creator::output_ramoptions(device_t &root)
|
||||
{
|
||||
for (const ram_device &ram : ram_device_iterator(root))
|
||||
for (const ram_device &ram : ram_device_iterator(root, 1))
|
||||
{
|
||||
if (!std::strcmp(ram.tag(), ":" RAM_TAG))
|
||||
{
|
||||
uint32_t const defsize(ram.default_size());
|
||||
bool havedefault(false);
|
||||
@ -1837,6 +1840,8 @@ void info_xml_creator::output_ramoptions(device_t &root)
|
||||
}
|
||||
if (!havedefault)
|
||||
fprintf(m_output, "\t\t<ramoption name=\"%s\" default=\"yes\">%u</ramoption>\n", ram.default_size_string(), defsize);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user