summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/casloopy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/casloopy.cpp')
-rw-r--r--src/mame/drivers/casloopy.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/drivers/casloopy.cpp b/src/mame/drivers/casloopy.cpp
index a11cf3b67c6..85567a36dbe 100644
--- a/src/mame/drivers/casloopy.cpp
+++ b/src/mame/drivers/casloopy.cpp
@@ -207,7 +207,7 @@ private:
DECLARE_WRITE16_MEMBER(sh7021_w);
DECLARE_READ8_MEMBER(bitmap_r);
DECLARE_WRITE8_MEMBER(bitmap_w);
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER(loopy_cart);
+ DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
void casloopy_map(address_map &map);
void casloopy_sub_map(address_map &map);
@@ -490,7 +490,7 @@ static const gfx_layout casloopy_8bpp_layoutROM =
#endif
-DEVICE_IMAGE_LOAD_MEMBER( casloopy_state, loopy_cart )
+DEVICE_IMAGE_LOAD_MEMBER( casloopy_state::cart_load )
{
uint32_t size = m_cart->common_get_size("rom");
uint8_t *SRC, *DST;
@@ -540,12 +540,11 @@ MACHINE_CONFIG_START(casloopy_state::casloopy)
GFXDECODE(config, m_gfxdecode, m_palette, gfxdecode_device::empty);
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "loopy_cart")
- MCFG_GENERIC_EXTENSIONS("bin,ic1")
- MCFG_GENERIC_WIDTH(GENERIC_ROM32_WIDTH)
- MCFG_GENERIC_ENDIAN(ENDIANNESS_LITTLE)
- MCFG_GENERIC_MANDATORY
- MCFG_GENERIC_LOAD(casloopy_state, loopy_cart)
+ generic_cartslot_device &cartslot(GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "loopy_cart", "bin,ic1"));
+ cartslot.set_width(GENERIC_ROM32_WIDTH);
+ cartslot.set_endian(ENDIANNESS_LITTLE);
+ cartslot.set_must_be_loaded(true);
+ cartslot.set_device_load(FUNC(casloopy_state::cart_load), this);
/* software lists */
SOFTWARE_LIST(config, "cart_list").set_original("casloopy");