mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
removed old code part (nw)
This commit is contained in:
parent
05109871be
commit
e078b40130
@ -308,24 +308,6 @@ void running_machine::start()
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// add_dynamic_device - dynamically add a device
|
||||
//-------------------------------------------------
|
||||
|
||||
device_t &running_machine::add_dynamic_device(device_t &owner, device_type type, const char *tag, UINT32 clock)
|
||||
{
|
||||
// add the device in a standard manner
|
||||
device_t *device = const_cast<machine_config &>(m_config).device_add(&owner, tag, type, clock);
|
||||
|
||||
// notify this device and all its subdevices that they are now configured
|
||||
device_iterator iter(root_device());
|
||||
for (device_t *dev = iter.first(); dev != NULL; dev = iter.next())
|
||||
if (!dev->configured())
|
||||
dev->config_complete();
|
||||
return *device;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// run - execute the machine
|
||||
//-------------------------------------------------
|
||||
|
@ -193,9 +193,6 @@ public:
|
||||
inline device_t *device(const char *tag) const { return root_device().subdevice(tag); }
|
||||
template<class _DeviceClass> inline _DeviceClass *device(const char *tag) { return downcast<_DeviceClass *>(device(tag)); }
|
||||
|
||||
// configuration helpers
|
||||
device_t &add_dynamic_device(device_t &owner, device_type type, const char *tag, UINT32 clock);
|
||||
|
||||
// immediate operations
|
||||
int run(bool firstrun);
|
||||
void pause();
|
||||
|
Loading…
Reference in New Issue
Block a user