mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
diimage.c: error out if xml is incomplete instead of crashing. no whatsnew.
This commit is contained in:
parent
d2bef384fc
commit
336dc3ca2d
@ -970,6 +970,11 @@ bool device_image_interface::load_internal(const char *path, bool is_create, int
|
||||
/* Copy some image information when we have been loaded through a software list */
|
||||
if ( m_software_info_ptr )
|
||||
{
|
||||
// sanitize
|
||||
if (!m_software_info_ptr->longname || !m_software_info_ptr->publisher || !m_software_info_ptr->year)
|
||||
fatalerror("Each entry in an XML list must have all of the following fields: description, publisher, year!\n");
|
||||
|
||||
// store
|
||||
m_longname = m_software_info_ptr->longname;
|
||||
m_manufacturer = m_software_info_ptr->publisher;
|
||||
m_year = m_software_info_ptr->year;
|
||||
|
Loading…
Reference in New Issue
Block a user