mirror of
https://github.com/holub/mame
synced 2025-06-30 07:58:56 +03:00
liberate.c: Fixed prosoccr save state problem as per Tafoid's -str 40 test (nw)
This commit is contained in:
parent
bf76cf773f
commit
a3244fbc20
@ -128,8 +128,6 @@ READ8_MEMBER(liberate_state::prosoccr_charram_r)
|
||||
|
||||
WRITE8_MEMBER(liberate_state::prosoccr_charram_w)
|
||||
{
|
||||
UINT8 *FG_GFX = memregion("fg_gfx")->base();
|
||||
|
||||
if (m_bank)
|
||||
{
|
||||
prosoccr_io_w(space, offset & 0x0f, data);
|
||||
@ -142,16 +140,16 @@ WRITE8_MEMBER(liberate_state::prosoccr_charram_w)
|
||||
switch (offset & 0x1800)
|
||||
{
|
||||
case 0x0000:
|
||||
FG_GFX[(offset & 0x7ff) + (0x0000) + 0x0000] = data;
|
||||
//FG_GFX[(offset & 0x7ff) + (0x1800) + 0x0000] = data;
|
||||
m_fg_gfx[(offset & 0x7ff) + (0x0000) + 0x0000] = data;
|
||||
//m_fg_gfx[(offset & 0x7ff) + (0x1800) + 0x0000] = data;
|
||||
break;
|
||||
case 0x0800:
|
||||
FG_GFX[(offset & 0x7ff) + (0x0000) + 0x2000] = data;
|
||||
//FG_GFX[(offset & 0x7ff) + (0x1800) + 0x2000] = data;
|
||||
m_fg_gfx[(offset & 0x7ff) + (0x0000) + 0x2000] = data;
|
||||
//m_fg_gfx[(offset & 0x7ff) + (0x1800) + 0x2000] = data;
|
||||
break;
|
||||
case 0x1000:
|
||||
FG_GFX[(offset & 0x7ff) + (0x0000) + 0x4000] = data;
|
||||
//FG_GFX[(offset & 0x7ff) + (0x1800) + 0x4000] = data;
|
||||
m_fg_gfx[(offset & 0x7ff) + (0x0000) + 0x4000] = data;
|
||||
//m_fg_gfx[(offset & 0x7ff) + (0x1800) + 0x4000] = data;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,9 @@ public:
|
||||
required_shared_ptr<UINT8> m_videoram;
|
||||
required_shared_ptr<UINT8> m_spriteram;
|
||||
optional_shared_ptr<UINT8> m_scratchram;
|
||||
|
||||
UINT8 *m_fg_gfx; /* prosoccr */
|
||||
UINT8 *m_charram; /* prosoccr */
|
||||
|
||||
UINT8 m_io_ram[16];
|
||||
|
||||
int m_bank;
|
||||
|
@ -207,7 +207,11 @@ VIDEO_START_MEMBER(liberate_state,prosoccr)
|
||||
|
||||
m_fix_tilemap->set_transparent_pen(0);
|
||||
|
||||
m_fg_gfx = memregion("fg_gfx")->base();
|
||||
m_charram = auto_alloc_array(machine(), UINT8, 0x1800 * 2);
|
||||
|
||||
save_pointer(NAME(m_charram), 0x1800 * 2);
|
||||
save_pointer(NAME(m_fg_gfx), 0x6000);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(liberate_state,boomrang)
|
||||
|
Loading…
Reference in New Issue
Block a user