mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
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:
parent
0fa47fada0
commit
b730796b8f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user