summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/netlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r--src/devices/machine/netlist.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index 3e7580be5b9..83e5fd295b3 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -467,6 +467,8 @@ private:
netlist::setup_t &netlist_mame_device::setup()
{
+ if (!m_netlist)
+ throw device_missing_dependencies();
return m_netlist->nlstate().setup();
}
@@ -548,6 +550,14 @@ void netlist_mame_sub_interface::set_mult_offset(const double mult, const double
m_offset = offset;
}
+netlist_mame_analog_input_device::netlist_mame_analog_input_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *param_name)
+ : device_t(mconfig, NETLIST_ANALOG_INPUT, tag, owner, 0)
+ , netlist_mame_sub_interface(*owner)
+ , m_param(nullptr)
+ , m_auto_port(true)
+ , m_param_name(param_name)
+{
+}
netlist_mame_analog_input_device::netlist_mame_analog_input_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, NETLIST_ANALOG_INPUT, tag, owner, clock)