trunk/src/emu/softlist.c
| r242064 | r242065 | |
| 612 | 612 | { |
| 613 | 613 | enum { NAME_LEN_PARENT = 8, NAME_LEN_CLONE = 16 }; |
| 614 | 614 | |
| 615 | | // first parse and output core errors if any |
| 616 | | if (m_errors.len() > 0) |
| 617 | | { |
| 618 | | osd_printf_error("%s: Errors parsing software list:\n%s", filename(), errors_string()); |
| 619 | | release(); |
| 620 | | return; |
| 621 | | } |
| 622 | | |
| 623 | 615 | softlist_map names; |
| 624 | 616 | softlist_map descriptions; |
| 625 | 617 | for (software_info *swinfo = first_software_info(); swinfo != NULL; swinfo = swinfo->next()) |
| 626 | 618 | { |
| 627 | | // First, check if the xml got corrupted: |
| 619 | // first parse and output core errors if any |
| 620 | if (m_errors.len() > 0) |
| 621 | { |
| 622 | osd_printf_error("%s: Errors parsing software list:\n%s", filename(), errors_string()); |
| 623 | break; |
| 624 | } |
| 628 | 625 | |
| 626 | // Now check if the xml data is valid: |
| 627 | |
| 629 | 628 | // Did we lost any description? |
| 630 | 629 | if (swinfo->longname() == NULL) |
| 631 | 630 | { |