diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-13 11:15:32 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-13 11:15:32 +0000 |
commit | 219e664785890f52079bae7e74543920d638796a (patch) | |
tree | 774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mame/drivers/nwk-tr.c | |
parent | af9a5e817d3eefdda79e801056b29167ecbcdef9 (diff) |
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mame/drivers/nwk-tr.c')
-rw-r--r-- | src/mame/drivers/nwk-tr.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/drivers/nwk-tr.c b/src/mame/drivers/nwk-tr.c index ea58ed3a074..f4f93f17a15 100644 --- a/src/mame/drivers/nwk-tr.c +++ b/src/mame/drivers/nwk-tr.c @@ -252,6 +252,8 @@ public: DECLARE_READ32_MEMBER(dsp_dataram_r); DECLARE_WRITE32_MEMBER(dsp_dataram_w); DECLARE_DRIVER_INIT(nwktr); + virtual void machine_start(); + virtual void machine_reset(); }; @@ -513,16 +515,15 @@ static TIMER_CALLBACK( irq_off ) machine.device("audiocpu")->execute().set_input_line(param, CLEAR_LINE); } -static MACHINE_START( nwktr ) +void nwktr_state::machine_start() { - nwktr_state *state = machine.driver_data<nwktr_state>(); /* set conservative DRC options */ - ppcdrc_set_options(machine.device("maincpu"), PPCDRC_COMPATIBLE_OPTIONS); + ppcdrc_set_options(machine().device("maincpu"), PPCDRC_COMPATIBLE_OPTIONS); /* configure fast RAM regions for DRC */ - ppcdrc_add_fastram(machine.device("maincpu"), 0x00000000, 0x003fffff, FALSE, state->m_work_ram); + ppcdrc_add_fastram(machine().device("maincpu"), 0x00000000, 0x003fffff, FALSE, m_work_ram); - state->m_sound_irq_timer = machine.scheduler().timer_alloc(FUNC(irq_off)); + m_sound_irq_timer = machine().scheduler().timer_alloc(FUNC(irq_off)); } static ADDRESS_MAP_START( nwktr_map, AS_PROGRAM, 32, nwktr_state ) @@ -703,9 +704,9 @@ static const k001604_interface thrilld_k001604_intf = 0 /* slrasslt hack */ }; -static MACHINE_RESET( nwktr ) +void nwktr_state::machine_reset() { - machine.device("dsp")->execute().set_input_line(INPUT_LINE_RESET, ASSERT_LINE); + machine().device("dsp")->execute().set_input_line(INPUT_LINE_RESET, ASSERT_LINE); } static const voodoo_config voodoo_intf = @@ -734,8 +735,6 @@ static MACHINE_CONFIG_START( nwktr, nwktr_state ) MCFG_QUANTUM_TIME(attotime::from_hz(9000)) - MCFG_MACHINE_START(nwktr) - MCFG_MACHINE_RESET(nwktr) MCFG_3DFX_VOODOO_1_ADD("voodoo", STD_VOODOO_1_CLOCK, voodoo_intf) |