This should fix most (hopefully all) the problems of MT06253. Many thanks to

Tafoid and Osso for the debugging help. nw.

BTW is it expected that the debugger blows up when saving / loading a state??
This commit is contained in:
etabeta78 2016-06-27 18:28:53 +02:00
parent 0fa47fada0
commit b730796b8f

View File

@ -1054,11 +1054,13 @@ void neogeo_state::init_cpu()
{
UINT8 *ROM = (!m_slots[m_curr_slot] || m_slots[m_curr_slot]->get_rom_size() == 0) ? m_region_maincpu->base() : (UINT8 *)m_slots[m_curr_slot]->get_rom_base();
UINT32 len = (!m_slots[m_curr_slot] || m_slots[m_curr_slot]->get_rom_size() == 0) ? m_region_maincpu->bytes() : m_slots[m_curr_slot]->get_rom_size();
if (len > 0x100000)
m_bank_cartridge->set_base(ROM + 0x100000);
m_bank_base = 0x100000;
else
m_bank_cartridge->set_base(ROM);
m_bank_base = 0;
m_bank_cartridge->set_base(ROM + m_bank_base);
}
void neogeo_state::init_audio()