Fixed build. (nw)

This commit is contained in:
Curt Coder 2014-09-23 07:29:44 +00:00
parent 69fdbd5872
commit 03a6c85577
2 changed files with 6 additions and 3 deletions

View File

@ -1315,7 +1315,8 @@ void a7800_state::machine_start()
save_item(NAME(m_maria_flag));
// install additional handlers, if needed
switch (m_cartslot->exists() && m_cartslot->get_cart_type())
if (m_cartslot->exists())
switch (m_cartslot->get_cart_type())
{
case A78_HSC:
// ROM+NVRAM accesses for HiScore

View File

@ -1735,7 +1735,8 @@ READ8_MEMBER(a400_state::read_d5xx)
WRITE8_MEMBER(a400_state::disable_cart)
{
switch (m_cartslot->exists() && m_cartslot->get_cart_type())
if (m_cartslot->exists())
switch (m_cartslot->get_cart_type())
{
case A800_PHOENIX:
case A800_BLIZZARD:
@ -1834,7 +1835,8 @@ void a400_state::setup_cart(a800_cart_slot_device *slot)
m_cart_disabled = 0;
m_last_offs = -1;
switch (slot->exists() && slot->get_cart_type())
if (slot->exists())
switch (slot->get_cart_type())
{
case A800_8K:
m_maincpu->space(AS_PROGRAM).install_read_handler(0xa000, 0xbfff, read8_delegate(FUNC(a800_cart_slot_device::read_80xx),(a800_cart_slot_device*)slot));