Previous 199869 Revisions Next

r21367 Saturday 23rd February, 2013 at 09:24:02 UTC by Oliver Stöneberg
(MESS) tandy2k_keyboard_device never used the static_config (nw)
[src/mess/machine]tandy2kb.c tandy2kb.h

trunk/src/mess/machine/tandy2kb.c
r21366r21367
252252{
253253}
254254
255//-------------------------------------------------
256//  device_config_complete - perform any
257//  operations now that the configuration is
258//  complete
259//-------------------------------------------------
255260
261void tandy2k_keyboard_device::device_config_complete()
262{
263   m_shortname = "tandy2kb";
264
265   // inherit a copy of the static data
266   const tandy2k_keyboard_interface *intf = reinterpret_cast<const tandy2k_keyboard_interface *>(static_config());
267   if (intf != NULL)
268      *static_cast<tandy2k_keyboard_interface *>(this) = *intf;
269
270   // or initialize to defaults if none provided
271   else
272   {
273      memset(&m_out_clock_cb, 0, sizeof(m_out_clock_cb));
274      memset(&m_out_data_cb, 0, sizeof(m_out_data_cb));
275   }
276}
277
256278//-------------------------------------------------
257279//  device_start - device-specific startup
258280//-------------------------------------------------
trunk/src/mess/machine/tandy2kb.h
r21366r21367
8181   // device-level overrides
8282   virtual void device_start();
8383   virtual void device_reset();
84   virtual void device_config_complete() { m_shortname = "tandy2kb"; }
84   virtual void device_config_complete();
8585
8686private:
8787   devcb_resolved_write_line   m_out_clock_func;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team