diff options
author | Vas Crabb <vas@vastheman.com> | 2018-05-02 14:43:01 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-05-02 14:43:01 +1000 |
commit | 8795d808087298025e66c818482f9d9b68968f1f (patch) | |
tree | 2b5edb3d3778917a83f28d7f613c5caf2f11b60c /src/emu/device.h | |
parent | 7c8d486909ffda985e169c454874cc08733f7ed6 (diff) |
Allow devcb to be bound to a device/mixin or the target of a device
finder. This works outside machine configuration context so the
workarounds in ATA HLE and MSX slots are no longer necessary. It also
allows reduction in tag repetition in machine configuration (see
converted osborne1.cpp, zorba.cpp or the more extreme tranz330.cpp).
Allow reimagined device instantiation to take a device finder based on
current device being configured to reduce repetition (see tranz330.cpp).
Diffstat (limited to 'src/emu/device.h')
-rw-r--r-- | src/emu/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/device.h b/src/emu/device.h index 8ff57dcc83f..3dbaa5f4e37 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -265,6 +265,7 @@ class device_type_impl : public device_type_impl_base public: using device_type_impl_base::device_type_impl_base; template <typename... Params> DeviceClass &operator()(machine_config &config, char const *tag, Params &&... args) const; + template <typename Exposed, bool Required, typename... Params> DeviceClass &operator()(machine_config &config, device_finder<Exposed, Required> &finder, Params &&... args) const; }; |