summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/315-5881_crypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/315-5881_crypt.h')
-rw-r--r--src/mame/machine/315-5881_crypt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mame/machine/315-5881_crypt.h b/src/mame/machine/315-5881_crypt.h
index 2f595435a89..4e61c38066a 100644
--- a/src/mame/machine/315-5881_crypt.h
+++ b/src/mame/machine/315-5881_crypt.h
@@ -39,6 +39,11 @@ public:
sega_m2_read_delegate m_read;
template <typename Object> void set_read_cb(Object &&readcb) { m_read = std::forward<Object>(readcb); }
+ void set_read_cb(sega_m2_read_delegate callback) { m_read = callback; }
+ template <class FunctionClass> void set_read_cb(uint16_t (FunctionClass::*callback)(uint32_t), const char *name)
+ {
+ set_read_cb(sega_m2_read_delegate(callback, name, nullptr, static_cast<FunctionClass *>(nullptr)));
+ }
protected:
virtual void device_start() override;