add validation entry for softlist items which might miss the <part> nodes

This commit is contained in:
etabeta78 2015-06-03 23:10:14 +02:00
parent 5f9be95354
commit 0798ea0646

View File

@ -557,6 +557,13 @@ void software_list_device::internal_validity_check(validity_checker &valid)
break;
}
// Did we lost the software parts?
if (swinfo->num_parts() == 0)
{
osd_printf_error("%s: %s has no part\n", filename(), swinfo->shortname());
break;
}
// Second, since the xml is fine, run additional checks:
// check for duplicate names