diff options
author | 2013-01-31 12:21:12 +0000 | |
---|---|---|
committer | 2013-01-31 12:21:12 +0000 | |
commit | f63dc9ba6597a6b0b4fc0ab906637a85f43a50cf (patch) | |
tree | 4f6244c9e82aa087609c8adc5e058e441f82607b /src/mame/drivers/quakeat.c | |
parent | 3e73b779d0f9e8a35ea4883595e655201c668ea3 (diff) |
IRQ_CALLBACK modernization part 1 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/quakeat.c')
-rw-r--r-- | src/mame/drivers/quakeat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/quakeat.c b/src/mame/drivers/quakeat.c index 3e06eac5c2b..2c715cec221 100644 --- a/src/mame/drivers/quakeat.c +++ b/src/mame/drivers/quakeat.c @@ -77,6 +77,7 @@ public: virtual void machine_start(); virtual void video_start(); UINT32 screen_update_quake(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + IRQ_CALLBACK_MEMBER(irq_callback); }; @@ -152,15 +153,14 @@ INPUT_PORTS_END /*************************************************************/ -static IRQ_CALLBACK(irq_callback) +IRQ_CALLBACK_MEMBER(quakeat_state::irq_callback) { - quakeat_state *state = device->machine().driver_data<quakeat_state>(); - return pic8259_acknowledge( state->m_pic8259_1); + return pic8259_acknowledge(m_pic8259_1); } void quakeat_state::machine_start() { - machine().device("maincpu")->execute().set_irq_acknowledge_callback(irq_callback); + machine().device("maincpu")->execute().set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(quakeat_state::irq_callback),this)); m_pic8259_1 = machine().device( "pic8259_1" ); m_pic8259_2 = machine().device( "pic8259_2" ); |