mirror of
https://github.com/holub/mame
synced 2025-07-07 02:50:50 +03:00
Set machine prior to starting a new device if not already done.
This commit is contained in:
parent
52c4657df7
commit
4d23a0b9fd
@ -155,6 +155,11 @@ void device_list::start_new_devices()
|
||||
// attempt to start the device, catching any expected exceptions
|
||||
try
|
||||
{
|
||||
// if the device doesn't have a machine yet, set it first
|
||||
if (device->m_machine == NULL)
|
||||
device->set_machine(machine());
|
||||
|
||||
// now start the device
|
||||
mame_printf_verbose("Starting %s '%s'\n", device->name(), device->tag());
|
||||
device->start();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user