mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
Quick fix to relegate the eeprom warnings to debug build only. (no whatsnew.txt)
Comment: There is still a major issue where this printf shows up when using many of the output commands -listxml, -romident and more. It should only show up when emulating the game, right?
This commit is contained in:
parent
bcf5b7a661
commit
8969b0b7ee
@ -132,7 +132,7 @@ void eeprom_device_config::static_set_interface(device_config *device, const eep
|
||||
void eeprom_device_config::static_set_default_data(device_config *device, const UINT8 *data, UINT32 size)
|
||||
{
|
||||
eeprom_device_config *eeprom = downcast<eeprom_device_config *>(device);
|
||||
if (eeprom->m_data_bits != 8) mame_printf_warning("16-bit EEPROM set with 8-bit data\n");
|
||||
if (eeprom->m_data_bits != 8) mame_printf_debug("16-bit EEPROM set with 8-bit data\n");
|
||||
// assert(eeprom->m_data_bits == 8);
|
||||
eeprom->m_default_data = data;
|
||||
eeprom->m_default_data_size = size;
|
||||
@ -141,7 +141,7 @@ if (eeprom->m_data_bits != 8) mame_printf_warning("16-bit EEPROM set with 8-bit
|
||||
void eeprom_device_config::static_set_default_data(device_config *device, const UINT16 *data, UINT32 size)
|
||||
{
|
||||
eeprom_device_config *eeprom = downcast<eeprom_device_config *>(device);
|
||||
if (eeprom->m_data_bits != 16) mame_printf_warning("8-bit EEPROM set with 16-bit data\n");
|
||||
if (eeprom->m_data_bits != 16) mame_printf_debug("8-bit EEPROM set with 16-bit data\n");
|
||||
// assert(eeprom->m_data_bits == 16);
|
||||
eeprom->m_default_data = reinterpret_cast<const UINT8 *>(data);
|
||||
eeprom->m_default_data_size = size;
|
||||
|
Loading…
Reference in New Issue
Block a user