Previous 199869 Revisions Next

r33553 Wednesday 26th November, 2014 at 08:19:10 UTC by Oliver Stöneberg
actually report softwarelist XML parsing errors in -validate (nw)
[src/emu]softlist.c

trunk/src/emu/softlist.c
r242064r242065
612612{
613613   enum { NAME_LEN_PARENT = 8, NAME_LEN_CLONE = 16 };
614614
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
623615   softlist_map names;
624616   softlist_map descriptions;
625617   for (software_info *swinfo = first_software_info(); swinfo != NULL; swinfo = swinfo->next())
626618   {
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      }
628625
626      // Now check if the xml data is valid:
627
629628      // Did we lost any description?
630629      if (swinfo->longname() == NULL)
631630      {


Previous 199869 Revisions Next


© 1997-2024 The MAME Team