mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
Fixed save state regression in armedf.c (kozure and terrafb) (nw)
This commit is contained in:
parent
86947110ce
commit
f0e9be3925
@ -5,18 +5,25 @@ class armedf_state : public driver_device
|
||||
public:
|
||||
armedf_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_spr_pal_clut(*this, "spr_pal_clut"),
|
||||
m_fg_videoram(*this, "fg_videoram"),
|
||||
m_bg_videoram(*this, "bg_videoram"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_extra(*this, "extra"),
|
||||
m_gfxdecode(*this, "gfxdecode"),
|
||||
m_palette(*this, "palette") { }
|
||||
m_palette(*this, "palette"),
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_spr_pal_clut(*this, "spr_pal_clut"),
|
||||
m_fg_videoram(*this, "fg_videoram"),
|
||||
m_bg_videoram(*this, "bg_videoram")
|
||||
{ }
|
||||
|
||||
/* memory pointers */
|
||||
UINT8 * m_text_videoram;
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
optional_device<cpu_device> m_extra;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
required_device<buffered_spriteram16_device> m_spriteram;
|
||||
|
||||
/* memory pointers */
|
||||
UINT8 *m_text_videoram;
|
||||
required_shared_ptr<UINT16> m_spr_pal_clut;
|
||||
required_shared_ptr<UINT16> m_fg_videoram;
|
||||
required_shared_ptr<UINT16> m_bg_videoram;
|
||||
@ -88,11 +95,6 @@ public:
|
||||
void armedf_drawgfx(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx,
|
||||
UINT32 code,UINT32 color, UINT32 clut,int flipx,int flipy,int offsx,int offsy,
|
||||
int transparent_color);
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
optional_device<cpu_device> m_extra;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
};
|
||||
|
||||
class bigfghtr_state : public armedf_state
|
||||
|
@ -128,6 +128,8 @@ VIDEO_START_MEMBER(armedf_state,terraf)
|
||||
|
||||
m_text_videoram = auto_alloc_array(machine(), UINT8, 0x1000);
|
||||
memset(m_text_videoram, 0x00, 0x1000);
|
||||
|
||||
save_pointer(NAME(m_text_videoram), 0x1000);
|
||||
}
|
||||
|
||||
VIDEO_START_MEMBER(armedf_state,armedf)
|
||||
@ -148,6 +150,8 @@ VIDEO_START_MEMBER(armedf_state,armedf)
|
||||
|
||||
m_text_videoram = auto_alloc_array(machine(), UINT8, 0x1000);
|
||||
memset(m_text_videoram, 0x00, 0x1000);
|
||||
|
||||
save_pointer(NAME(m_text_videoram), 0x1000);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user