Previous 199869 Revisions Next

r20445 Thursday 24th January, 2013 at 19:05:12 UTC by Fabio Priuli
diimage.c: error out if xml is incomplete instead of crashing. no whatsnew.
[src/emu]diimage.c

trunk/src/emu/diimage.c
r20444r20445
970970      /* Copy some image information when we have been loaded through a software list */
971971      if ( m_software_info_ptr )
972972      {
973         // sanitize
974         if (!m_software_info_ptr->longname || !m_software_info_ptr->publisher || !m_software_info_ptr->year)
975            fatalerror("Each entry in an XML list must have all of the following fields: description, publisher, year!\n");
976
977         // store
973978         m_longname = m_software_info_ptr->longname;
974979         m_manufacturer = m_software_info_ptr->publisher;
975980         m_year = m_software_info_ptr->year;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team