diff options
author | 2011-04-27 05:11:18 +0000 | |
---|---|---|
committer | 2011-04-27 05:11:18 +0000 | |
commit | 919913f118760c0ca41ab63512bd5c106f6fd840 (patch) | |
tree | cd6c115c8e9c5280ac4bd16eabfe69c7341151c2 /src/ldplayer/ldplayer.c | |
parent | 84f2c31f7d6f6c667427b1d60c83e6dc9f420d60 (diff) |
Collapsed device_config and device_t into one class. Updated all
existing modern devices and the legacy wrappers to work in this
environment. This in general greatly simplifies writing a modern
device. [Aaron Giles]
General notes:
* some more cleanup probably needs to happen behind this change,
but I needed to get it in before the next device modernization
or import from MESS :)
* new template function device_creator which automatically defines
the static function that creates the device; use this instead of
creating a static_alloc_device_config function
* added device_stop() method which is called at around the time
the previous device_t's destructor was called; if you auto_free
anything, do it here because the machine is gone when the
destructor is called
* changed the static_set_* calls to pass a device_t & instead of
a device_config *
* for many devices, the static config structure member names over-
lapped the device's names for devcb_* functions; in these cases
the members in the interface were renamed to have a _cb suffix
* changed the driver_enumerator to only cache 100 machine_configs
because caching them all took a ton of memory; fortunately this
implementation detail is completely hidden behind the
driver_enumerator interface
* got rid of the macros for creating derived classes; doing it
manually is now clean enough that it isn't worth hiding the
details in a macro
Diffstat (limited to 'src/ldplayer/ldplayer.c')
-rw-r--r-- | src/ldplayer/ldplayer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ldplayer/ldplayer.c b/src/ldplayer/ldplayer.c index 758b68e722a..21d6bd5058d 100644 --- a/src/ldplayer/ldplayer.c +++ b/src/ldplayer/ldplayer.c @@ -36,8 +36,8 @@ class ldplayer_state : public driver_device { public: // construction/destruction - ldplayer_state(running_machine &machine, const driver_device_config_base &config) - : driver_device(machine, config), + ldplayer_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), m_last_controls(0), m_playing(false), m_laserdisc(*this, "laserdisc") { } @@ -107,7 +107,7 @@ class pr8210_state : public ldplayer_state { public: // construction/destruction - pr8210_state(running_machine &machine, const driver_device_config_base &config) + pr8210_state(const machine_config &mconfig, device_type type, const char *tag) : ldplayer_state(machine, config), m_bit_timer(timer_alloc(TIMER_ID_BIT)), m_command_buffer_in(0), @@ -143,7 +143,7 @@ class ldv1000_state : public ldplayer_state { public: // construction/destruction - ldv1000_state(running_machine &machine, const driver_device_config_base &config) + ldv1000_state(const machine_config &mconfig, device_type type, const char *tag) : ldplayer_state(machine, config) { } protected: |