Previous 199869 Revisions Next

r41764 Wednesday 18th November, 2015 at 08:57:34 UTC by Miodrag Milanović
removed old code part (nw)
[src/emu]machine.cpp machine.h

trunk/src/emu/machine.cpp
r250275r250276
309309
310310
311311//-------------------------------------------------
312//  add_dynamic_device - dynamically add a device
313//-------------------------------------------------
314
315device_t &running_machine::add_dynamic_device(device_t &owner, device_type type, const char *tag, UINT32 clock)
316{
317   // add the device in a standard manner
318   device_t *device = const_cast<machine_config &>(m_config).device_add(&owner, tag, type, clock);
319
320   // notify this device and all its subdevices that they are now configured
321   device_iterator iter(root_device());
322   for (device_t *dev = iter.first(); dev != NULL; dev = iter.next())
323      if (!dev->configured())
324         dev->config_complete();
325   return *device;
326}
327
328
329//-------------------------------------------------
330312//  run - execute the machine
331313//-------------------------------------------------
332314
trunk/src/emu/machine.h
r250275r250276
193193   inline device_t *device(const char *tag) const { return root_device().subdevice(tag); }
194194   template<class _DeviceClass> inline _DeviceClass *device(const char *tag) { return downcast<_DeviceClass *>(device(tag)); }
195195
196   // configuration helpers
197   device_t &add_dynamic_device(device_t &owner, device_type type, const char *tag, UINT32 clock);
198
199196   // immediate operations
200197   int run(bool firstrun);
201198   void pause();


Previous 199869 Revisions Next


© 1997-2024 The MAME Team