mirror of
https://github.com/holub/mame
synced 2025-06-07 05:13:46 +03:00
actually report softwarelist XML parsing errors in -validate (nw)
This commit is contained in:
parent
98aedadd72
commit
25a704af39
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user