summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/rx78.c
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-09-22 14:49:38 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-09-22 14:49:38 +0000
commit99f2c48264b105086558c783c775a7b29853a794 (patch)
tree7179d3e22fe91dc814fa01b685d38b1f81debc02 /src/mess/drivers/rx78.c
parent0b8dc8834df650caecf293fb8f460578214ee24c (diff)
(MESS) consolidated generic socket / cartslot a bit more: removed
redundant cart_mounted() function since exists() from image device already provides the required service, and added capability to specify endianness of the rom region (otherwise not detectable from fullpath). nw.
Diffstat (limited to 'src/mess/drivers/rx78.c')
-rw-r--r--src/mess/drivers/rx78.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mess/drivers/rx78.c b/src/mess/drivers/rx78.c
index ccf309d7939..3a334a72268 100644
--- a/src/mess/drivers/rx78.c
+++ b/src/mess/drivers/rx78.c
@@ -410,7 +410,7 @@ INPUT_PORTS_END
void rx78_state::machine_reset()
{
address_space &prg = m_maincpu->space(AS_PROGRAM);
- if (m_cart->cart_mounted())
+ if (m_cart->exists())
prg.install_read_handler(0x2000, 0x5fff, read8_delegate(FUNC(generic_slot_device::read_rom),(generic_slot_device*)m_cart));
}
@@ -424,7 +424,7 @@ DEVICE_IMAGE_LOAD_MEMBER( rx78_state, rx78_cart )
return IMAGE_INIT_FAIL;
}
- m_cart->rom_alloc(size, 1);
+ m_cart->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
m_cart->common_load_rom(m_cart->get_rom_base(), size, "rom");
return IMAGE_INIT_PASS;
@@ -468,7 +468,7 @@ static MACHINE_CONFIG_START( rx78, rx78_state )
MCFG_PALETTE_ADD("palette", 16+1) //+1 for the background color
MCFG_GFXDECODE_ADD("gfxdecode", "palette", rx78)
- MCFG_GENERIC_CARTSLOT_ADD("cartslot", GENERIC_ROM8_WIDTH, generic_plain_slot, "rx78_cart")
+ MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "rx78_cart")
MCFG_GENERIC_EXTENSIONS("bin,rom")
MCFG_GENERIC_LOAD(rx78_state, rx78_cart)