mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
Fix recent regressions, nw
This commit is contained in:
parent
082617fa3d
commit
c3aa68905e
@ -70,7 +70,14 @@ void scsi_port_device::device_add_mconfig(machine_config &config)
|
||||
|
||||
void scsi_port_device::device_start()
|
||||
{
|
||||
m_device_count = 8;
|
||||
m_device_count = 0;
|
||||
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
scsi_port_slot_device *slot = subdevice<scsi_port_slot_device>(m_slot[i].finder_tag());
|
||||
if (slot != nullptr)
|
||||
m_device_count = i + 1;
|
||||
}
|
||||
|
||||
m_bsy_handler.resolve_safe();
|
||||
m_sel_handler.resolve_safe();
|
||||
|
@ -211,7 +211,7 @@ private:
|
||||
devcb_write_line m_data6_handler;
|
||||
devcb_write_line m_data7_handler;
|
||||
|
||||
required_device_array<scsi_port_slot_device, 7> m_slot;
|
||||
optional_device_array<scsi_port_slot_device, 7> m_slot;
|
||||
int m_device_count;
|
||||
|
||||
int m_bsy_in;
|
||||
|
Loading…
Reference in New Issue
Block a user