Only print mismatched width warnings for required pointers.

Gets rid of spurious messages in tons of drivers.
This commit is contained in:
Aaron Giles 2012-04-22 05:18:20 +00:00
parent f3de08a9f8
commit a0a0ffd5fe

View File

@ -924,7 +924,8 @@ void *device_t::finder_base::find_memory(UINT8 width, size_t &bytes, bool requir
// check the width and warn if not correct
if (width != 0 && share->width() != width)
{
mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width);
if (required)
mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width);
return NULL;
}