mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
softlist_dev.cpp: Validate characters in software list names
This commit is contained in:
parent
5a037bccb2
commit
1f7c13939f
@ -454,6 +454,9 @@ void software_list_device::internal_validity_check(validity_checker &valid)
|
||||
|
||||
if (m_shortname.length() > NAME_LEN_LIST)
|
||||
osd_printf_error("%s: %s software list name must be %d characters or less\n", m_filename, m_shortname, NAME_LEN_LIST);
|
||||
|
||||
if (std::find_if_not(m_shortname.begin(), m_shortname.end(), valid_name_char) != m_shortname.end())
|
||||
osd_printf_error("%s: %s software list name contains invalid characters\n", m_filename, m_shortname);
|
||||
}
|
||||
|
||||
// now check the software items
|
||||
|
Loading…
Reference in New Issue
Block a user