From 03843bf934973795beec28e65601bb9853023536 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 22 Nov 2016 22:11:11 +0800 Subject: [PATCH] Unified delegates. Let's keep it easy for the caller. --- Machines/Oric/Microdisc.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Machines/Oric/Microdisc.hpp b/Machines/Oric/Microdisc.hpp index fcbe21b1a..12533d3ff 100644 --- a/Machines/Oric/Microdisc.hpp +++ b/Machines/Oric/Microdisc.hpp @@ -29,12 +29,12 @@ class Microdisc: public WD::WD1770 { MicrodscDisable = (1 << 1) }; - class Delegate { + class Delegate: public WD1770::Delegate { public: virtual void microdisc_did_change_paging_flags(Microdisc *microdisc) = 0; }; - inline void set_microdisc_delegate(Delegate *delegate) { delegate_ = delegate; } - inline int get_paging_flags() { return paging_flags_; } + inline void set_delegate(Delegate *delegate) { delegate_ = delegate; WD1770::set_delegate(delegate); } + inline int get_paging_flags() { return paging_flags_; } private: std::shared_ptr drives_[4];