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/hotblock.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/hotblock.c')
-rw-r--r-- | src/mame/drivers/hotblock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/hotblock.c b/src/mame/drivers/hotblock.c index 75588841f66..b3bf31f11b0 100644 --- a/src/mame/drivers/hotblock.c +++ b/src/mame/drivers/hotblock.c @@ -66,6 +66,7 @@ public: DECLARE_WRITE8_MEMBER(hotblock_port4_w); DECLARE_WRITE8_MEMBER(hotblock_port0_w); DECLARE_WRITE8_MEMBER(hotblock_video_write); + virtual void video_start(); }; @@ -136,10 +137,9 @@ ADDRESS_MAP_END -static VIDEO_START(hotblock) +void hotblock_state::video_start() { - hotblock_state *state = machine.driver_data<hotblock_state>(); - state->save_item(NAME(state->m_pal)); + save_item(NAME(m_pal)); } static SCREEN_UPDATE_IND16(hotblock) @@ -229,7 +229,6 @@ static MACHINE_CONFIG_START( hotblock, hotblock_state ) MCFG_PALETTE_LENGTH(256) - MCFG_VIDEO_START(hotblock) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") |