mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +03:00
softlist: fixed inconsistent -listsoftware output. [phulshof]
This commit is contained in:
parent
9efdf6560a
commit
2943c5fc55
@ -1293,13 +1293,12 @@ void cli_frontend::listsoftware(const char *gamename)
|
|||||||
{
|
{
|
||||||
software_list_device_iterator iter(drivlist.config().root_device());
|
software_list_device_iterator iter(drivlist.config().root_device());
|
||||||
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
|
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
|
||||||
if (swlistdev->list_type() == SOFTWARE_LIST_ORIGINAL_SYSTEM)
|
if (list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
|
||||||
if (list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
|
if (swlistdev->first_software_info() != NULL)
|
||||||
if (swlistdev->first_software_info() != NULL)
|
{
|
||||||
{
|
if (isfirst) { fprintf(out, SOFTLIST_XML_BEGIN); isfirst = false; }
|
||||||
if (isfirst) { fprintf(out, SOFTLIST_XML_BEGIN); isfirst = false; }
|
output_single_softlist(out, *swlistdev);
|
||||||
output_single_softlist(out, *swlistdev);
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isfirst)
|
if (!isfirst)
|
||||||
|
Loading…
Reference in New Issue
Block a user