mirror of
https://github.com/holub/mame
synced 2025-05-03 21:13:18 +03:00
Fix for save state reloading for many machines using oki6295, thanks to Osso (nw)
This commit is contained in:
parent
3cd120638a
commit
5f0177016a
@ -151,7 +151,9 @@ void okim6295_device::device_reset()
|
|||||||
|
|
||||||
void okim6295_device::device_post_load()
|
void okim6295_device::device_post_load()
|
||||||
{
|
{
|
||||||
set_bank_base(m_bank_offs, true);
|
if (m_bank_offs != 0)
|
||||||
|
set_bank_base(m_bank_offs, true);
|
||||||
|
|
||||||
device_clock_changed();
|
device_clock_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,7 +198,10 @@ void okim6295_device::set_bank_base(offs_t base, bool bDontUpdateStream)
|
|||||||
{
|
{
|
||||||
m_stream->update();
|
m_stream->update();
|
||||||
}
|
}
|
||||||
set_rom_bank(base / 0x40000);
|
|
||||||
|
m_bank_offs = base;
|
||||||
|
|
||||||
|
set_rom_bank(m_bank_offs / 0x40000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user