summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-09-06 17:32:55 +0200
committer hap <happppp@users.noreply.github.com>2021-09-06 17:32:55 +0200
commitc916de50a65932ce5d3139390e1fefebebbef772 (patch)
treea2995a971968aad712bbf13e1a8ee39c900917ea
parent88f6393be8ab3a4a399eda6319e8550cd584a5d0 (diff)
i8244: use parent_rom_device_type for i8245
-rw-r--r--src/devices/video/i8244.h20
1 files 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