actually report softwarelist XML parsing errors in -validate (nw)

This commit is contained in:
Oliver Stöneberg 2014-11-26 09:19:10 +01:00
parent 98aedadd72
commit 25a704af39

View File

@ -612,19 +612,18 @@ void software_list_device::internal_validity_check(validity_checker &valid)
{
enum { NAME_LEN_PARENT = 8, NAME_LEN_CLONE = 16 };
// first parse and output core errors if any
if (m_errors.len() > 0)
{
osd_printf_error("%s: Errors parsing software list:\n%s", filename(), errors_string());
release();
return;
}
softlist_map names;
softlist_map descriptions;
for (software_info *swinfo = first_software_info(); swinfo != NULL; swinfo = swinfo->next())
{
// First, check if the xml got corrupted:
// first parse and output core errors if any
if (m_errors.len() > 0)
{
osd_printf_error("%s: Errors parsing software list:\n%s", filename(), errors_string());
break;
}
// Now check if the xml data is valid:
// Did we lost any description?
if (swinfo->longname() == NULL)