src/mess/video/t6a04.c
| r14164 | r14165 | |
| 42 | 42 | // on this device |
| 43 | 43 | //------------------------------------------------- |
| 44 | 44 | |
| 45 | | bool t6a04_device::device_validity_check( emu_options &options, const game_driver &driver ) const |
| 45 | void t6a04_device::device_validity_check(validity_checker &valid) const |
| 46 | 46 | { |
| 47 | | bool error = false; |
| 48 | | |
| 49 | 47 | if (height == 0 || width == 0) |
| 50 | | { |
| 51 | | mame_printf_error("%s: %s device '%s' has invalid parameter\n", driver.source_file, driver.name, tag()); |
| 52 | | error = true; |
| 53 | | } |
| 54 | | |
| 55 | | return error; |
| 48 | mame_printf_error("Configured with invalid parameter\n"); |
| 56 | 49 | } |
| 57 | 50 | |
| 58 | 51 | //************************************************************************** |
src/mess/video/hd44352.h
| r14164 | r14165 | |
| 49 | 49 | virtual void device_reset(); |
| 50 | 50 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 51 | 51 | virtual void device_config_complete(); |
| 52 | | virtual bool device_validity_check( emu_options &options, const game_driver &driver ) const; |
| 52 | virtual void device_validity_check(validity_checker &valid) const; |
| 53 | 53 | |
| 54 | 54 | private: |
| 55 | 55 | UINT8 compute_newval(UINT8 type, UINT8 oldval, UINT8 newval); |
src/mess/video/hd44780.c
| r14164 | r14165 | |
| 46 | 46 | // on this device |
| 47 | 47 | //------------------------------------------------- |
| 48 | 48 | |
| 49 | | bool hd44780_device::device_validity_check( emu_options &options, const game_driver &driver ) const |
| 49 | void hd44780_device::device_validity_check(validity_checker &valid) const |
| 50 | 50 | { |
| 51 | | bool error = false; |
| 52 | | |
| 53 | 51 | // display with more than 2 lines requires a layout |
| 54 | 52 | if ((custom_layout == NULL && height > 2) || height == 0 || width == 0) |
| 55 | | { |
| 56 | | mame_printf_error("%s: %s device '%s' has invalid parameter\n", driver.source_file, driver.name, tag()); |
| 57 | | error = true; |
| 58 | | } |
| 59 | | |
| 60 | | return error; |
| 53 | mame_printf_error("Configured with invalid parameter\n"); |
| 61 | 54 | } |
| 62 | 55 | |
| 63 | 56 | //************************************************************************** |