small cleanup. nw.

This commit is contained in:
Fabio Priuli 2014-02-13 10:17:58 +00:00
parent ad550cb7b8
commit f897a1a67d
2 changed files with 5 additions and 13 deletions

View file

@ -186,7 +186,7 @@ static const nes_mmc mmc_list[] =
{ 154, NAMCOT_34X3 },
{ 155, STD_SXROM_A }, // diff compared to MMC1 concern WRAM
{ 156, OPENCORP_DAOU306 },
{ 157, BANDAI_DATACH }, // no Datach Reader -> we fall back to mapper 16
{ 157, BANDAI_DATACH }, // Datach Reader games -> must go in the Datach subslot
{ 158, TENGEN_800037 },
{ 159, BANDAI_LZ93EX1 }, // with 24c01
{ 160, SACHEN_SA009 },
@ -679,6 +679,10 @@ void nes_cart_slot_device::call_load_ines()
mapper_sram_size = m_cart->get_mapper_sram_size();
break;
//FIXME: we also have to fix Action 52 PRG loading somewhere...
case BANDAI_DATACH:
fatalerror("Bandai Datach games have to be mounted in the Datach subslot!\n");
break;
}
// Finally turn off bus conflict emulation, because the pirate variants of the boards are bus conflict free and games would glitch

View file

@ -443,18 +443,6 @@ void nes_cart_slot_device::call_load_pcb()
if (get_software_region("bwram") != NULL)
battery_size = get_software_region_length("bwram");
if (m_pcb_id == BANDAI_LZ93EX1 || m_pcb_id == BANDAI_LZ93EX2)
{
// allocate the 24C01 or 24C02 EEPROM
battery_size += 0x2000;
}
if (m_pcb_id == BANDAI_DATACH)
{
// allocate the 24C01 and 24C02 EEPROM
battery_size += 0x4000;
}
if (get_software_region("wram") != NULL)
prgram_size = get_software_region_length("wram");