diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-08-10 08:33:51 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-08-10 08:33:51 +0000 |
commit | c75c14d4d3541f93dd3ad10054c9cc09407493e9 (patch) | |
tree | ee5693b028ef22d3ee70ce5f78a5a0ffbb7e75a7 /src/mame/drivers/dlair.c | |
parent | 24991f6661251f71458f3d3fbe3c5315f32d07a9 (diff) |
All driver inits are now member of state classes.
Added DECLARE_DRIVER_INIT macro to define it H file, and
DRIVER_INIT_MEMBER for member declaration in C files
Updated all drivers accordingly (no whatsnew)
Diffstat (limited to 'src/mame/drivers/dlair.c')
-rw-r--r-- | src/mame/drivers/dlair.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/dlair.c b/src/mame/drivers/dlair.c index ab0b35aa240..cda237ac582 100644 --- a/src/mame/drivers/dlair.c +++ b/src/mame/drivers/dlair.c @@ -108,6 +108,8 @@ public: DECLARE_WRITE8_MEMBER(laserdisc_w); DECLARE_CUSTOM_INPUT_MEMBER(laserdisc_status_r); DECLARE_CUSTOM_INPUT_MEMBER(laserdisc_command_r); + DECLARE_DRIVER_INIT(fixed); + DECLARE_DRIVER_INIT(variable); }; @@ -968,17 +970,15 @@ ROM_END * *************************************/ -static DRIVER_INIT( fixed ) +DRIVER_INIT_MEMBER(dlair_state,fixed) { -// dlair_state *state = machine.driver_data<dlair_state>(); -// state->m_laserdisc_type = LASERDISC_TYPE_FIXED; +// m_laserdisc_type = LASERDISC_TYPE_FIXED; } -static DRIVER_INIT( variable ) +DRIVER_INIT_MEMBER(dlair_state,variable) { -// dlair_state *state = machine.driver_data<dlair_state>(); -// state->m_laserdisc_type = LASERDISC_TYPE_VARIABLE; +// m_laserdisc_type = LASERDISC_TYPE_VARIABLE; } |