Previous 15994 Revisions Next

r14165 Tuesday 24th January, 2012 at 20:55:40 UTC by Aaron Giles
Fixed missed device_validity_check conversions.
[src/mess/video]hd44352.c hd44352.h hd44780.c hd44780.h t6a04.c t6a04.h

src/mess/video/t6a04.c
r14164r14165
4242//  on this device
4343//-------------------------------------------------
4444
45bool t6a04_device::device_validity_check( emu_options &options, const game_driver &driver ) const
45void t6a04_device::device_validity_check(validity_checker &valid) const
4646{
47   bool error = false;
48
4947   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");
5649}
5750
5851//**************************************************************************
src/mess/video/hd44352.h
r14164r14165
4949   virtual void device_reset();
5050   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
5151   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;
5353
5454private:
5555   UINT8 compute_newval(UINT8 type, UINT8 oldval, UINT8 newval);
src/mess/video/t6a04.h
r14164r14165
4747   virtual void device_start();
4848   virtual void device_reset();
4949   virtual void device_config_complete();
50   virtual bool device_validity_check( emu_options &options, const game_driver &driver ) const;
50   virtual void device_validity_check(validity_checker &valid) const;
5151
5252private:
5353   UINT8 m_busy_flag;
src/mess/video/hd44780.c
r14164r14165
4646//  on this device
4747//-------------------------------------------------
4848
49bool hd44780_device::device_validity_check( emu_options &options, const game_driver &driver ) const
49void hd44780_device::device_validity_check(validity_checker &valid) const
5050{
51   bool error = false;
52
5351   // display with more than 2 lines requires a layout
5452   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");
6154}
6255
6356//**************************************************************************
src/mess/video/hd44780.h
r14164r14165
5151   virtual void device_reset();
5252   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
5353   virtual void device_config_complete();
54   virtual bool device_validity_check( emu_options &options, const game_driver &driver ) const;
54   virtual void device_validity_check(validity_checker &valid) const;
5555
5656private:
5757   // internal helper
src/mess/video/hd44352.c
r14164r14165
6262//  on this device
6363//-------------------------------------------------
6464
65bool hd44352_device::device_validity_check( emu_options &options, const game_driver &driver ) const
65void hd44352_device::device_validity_check(validity_checker &valid) const
6666{
67   bool error = false;
68
69   return error;
7067}
7168//-------------------------------------------------
7269//  device_start - device-specific startup

Previous 15994 Revisions Next


© 1998-2018 The MESS Team