i8244: use parent_rom_device_type for i8245

This commit is contained in:
hap 2021-09-06 17:32:55 +02:00
parent 88f6393be8
commit c916de50a6

View file

@ -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