From c916de50a65932ce5d3139390e1fefebebbef772 Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 6 Sep 2021 17:32:55 +0200 Subject: i8244: use parent_rom_device_type for i8245 --- src/devices/video/i8244.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/devices/video/i8244.h b/src/devices/video/i8244.h index ca9b2173029..5d05760ee26 100644 --- a/src/devices/video/i8244.h +++ b/src/devices/video/i8244.h @@ -36,6 +36,18 @@ */ +//************************************************************************** +// DEVICE TYPE DECLARATION +//************************************************************************** + +DECLARE_DEVICE_TYPE(I8244, i8244_device) +DECLARE_DEVICE_TYPE(I8245, i8245_device) + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + class i8244_device : public device_t , public device_sound_interface , public device_video_interface @@ -172,19 +184,17 @@ protected: }; -class i8245_device : public i8244_device +class i8245_device : public i8244_device { public: // construction/destruction i8245_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + static auto parent_rom_device_type() { return &I8244; } + protected: virtual void set_default_params() override; }; -// device type definition -DECLARE_DEVICE_TYPE(I8244, i8244_device) -DECLARE_DEVICE_TYPE(I8245, i8245_device) - #endif // MAME_VIDEO_I8244_H -- cgit v1.2.3