From 0611af8d51ccbb483d8294b6942af9dd3d461dd3 Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 7 Sep 2021 13:24:32 +0200 Subject: saitek_osa/maestro: use parent_rom_device_type for analyst --- src/devices/bus/saitek_osa/maestro.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/devices/bus/saitek_osa/maestro.h') diff --git a/src/devices/bus/saitek_osa/maestro.h b/src/devices/bus/saitek_osa/maestro.h index fee4b497d03..89c580c9ef5 100644 --- a/src/devices/bus/saitek_osa/maestro.h +++ b/src/devices/bus/saitek_osa/maestro.h @@ -16,6 +16,9 @@ #include "bus/generic/slot.h" #include "video/hd44780.h" +DECLARE_DEVICE_TYPE(OSA_MAESTRO, saitekosa_maestro_device) +DECLARE_DEVICE_TYPE(OSA_ANALYST, saitekosa_analyst_device) + class saitekosa_maestro_device : public device_t, public device_saitekosa_expansion_interface { @@ -69,6 +72,8 @@ public: virtual u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) override; + static auto parent_rom_device_type() { return &OSA_MAESTRO; } + protected: virtual const tiny_rom_entry *device_rom_region() const override; virtual void device_add_mconfig(machine_config &config) override; @@ -80,8 +85,4 @@ private: virtual void main_map(address_map &map) override; }; - -DECLARE_DEVICE_TYPE(OSA_MAESTRO, saitekosa_maestro_device) -DECLARE_DEVICE_TYPE(OSA_ANALYST, saitekosa_analyst_device) - #endif // MAME_BUS_SAITEKOSA_MAESTRO_H -- cgit v1.2.3