Previous 199869 Revisions Next

r21372 Saturday 23rd February, 2013 at 09:40:11 UTC by Oliver Stöneberg
(MESS) trs80m2_keyboard_device never used static_config (nw)
[src/mess/machine]trs80m2kb.c trs80m2kb.h

trunk/src/mess/machine/trs80m2kb.c
r21371r21372
257257
258258
259259//-------------------------------------------------
260//  device_config_complete - perform any
261//  operations now that the configuration is
262//  complete
263//-------------------------------------------------
264
265void trs80m2_keyboard_device::device_config_complete()
266{
267   m_shortname = "trs80m2kb";
268
269   // inherit a copy of the static data
270   const trs80m2_keyboard_interface *intf = reinterpret_cast<const trs80m2_keyboard_interface *>(static_config());
271   if (intf != NULL)
272      *static_cast<trs80m2_keyboard_interface *>(this) = *intf;
273
274   // or initialize to defaults if none provided
275   else
276   {
277      memset(&m_out_clock_cb, 0, sizeof(m_out_clock_cb));
278   }
279}
280
281
282//-------------------------------------------------
260283//  device_start - device-specific startup
261284//-------------------------------------------------
262285
trunk/src/mess/machine/trs80m2kb.h
r21371r21372
8080   // device-level overrides
8181   virtual void device_start();
8282   virtual void device_reset();
83   virtual void device_config_complete() { m_shortname = "trs80m2kb"; }
83   virtual void device_config_complete();
8484
8585private:
8686   devcb_resolved_write_line   m_out_clock_func;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team