mirror of
https://github.com/holub/mame
synced 2025-05-08 15:22:28 +03:00
a2eauxslot: Fix regression by not nullifying slot pointer in device_start (nw)
This commit is contained in:
parent
7514b1aaa9
commit
6b8d370ecb
@ -74,24 +74,23 @@ a2eauxslot_device::a2eauxslot_device(const machine_config &mconfig, device_type
|
|||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// device_start - device-specific startup
|
// device_resolve_objects - resolve objects that
|
||||||
|
// may be needed for other devices to set
|
||||||
|
// initial conditions at start time
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void a2eauxslot_device::device_start()
|
void a2eauxslot_device::device_resolve_objects()
|
||||||
{
|
{
|
||||||
// resolve callbacks
|
// resolve callbacks
|
||||||
m_out_irq_cb.resolve_safe();
|
m_out_irq_cb.resolve_safe();
|
||||||
m_out_nmi_cb.resolve_safe();
|
m_out_nmi_cb.resolve_safe();
|
||||||
|
|
||||||
// clear slot
|
|
||||||
m_device = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// device_reset - device-specific reset
|
// device_start - device-specific startup
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void a2eauxslot_device::device_reset()
|
void a2eauxslot_device::device_start()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ protected:
|
|||||||
a2eauxslot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
|
a2eauxslot_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
|
||||||
|
|
||||||
// device-level overrides
|
// device-level overrides
|
||||||
|
virtual void device_resolve_objects() override;
|
||||||
virtual void device_start() override;
|
virtual void device_start() override;
|
||||||
virtual void device_reset() override;
|
|
||||||
|
|
||||||
// internal state
|
// internal state
|
||||||
required_address_space m_space;
|
required_address_space m_space;
|
||||||
|
Loading…
Reference in New Issue
Block a user