Previous 199869 Revisions Next

r31276 Monday 14th July, 2014 at 16:52:01 UTC by Osso
Fixed save state regression in armedf.c (kozure and terrafb) (nw)
[src/mame/includes]armedf.h
[src/mame/video]armedf.c

trunk/src/mame/includes/armedf.h
r31275r31276
55public:
66   armedf_state(const machine_config &mconfig, device_type type, const char *tag)
77      : driver_device(mconfig, type, tag),
8      m_maincpu(*this, "maincpu"),
9      m_extra(*this, "extra"),
10      m_gfxdecode(*this, "gfxdecode"),
11      m_palette(*this, "palette"),
812      m_spriteram(*this, "spriteram"),
913      m_spr_pal_clut(*this, "spr_pal_clut"),
1014      m_fg_videoram(*this, "fg_videoram"),
11      m_bg_videoram(*this, "bg_videoram"),
12      m_maincpu(*this, "maincpu"),
13      m_extra(*this, "extra"),
14      m_gfxdecode(*this, "gfxdecode"),
15      m_palette(*this, "palette") { }
15      m_bg_videoram(*this, "bg_videoram")
16      { }
1617
18   /* devices */
19   required_device<cpu_device> m_maincpu;
20   optional_device<cpu_device> m_extra;
21   required_device<gfxdecode_device> m_gfxdecode;
22   required_device<palette_device> m_palette;
23   required_device<buffered_spriteram16_device> m_spriteram;
24   
1725   /* memory pointers */
18   UINT8  *  m_text_videoram;
19   required_device<buffered_spriteram16_device> m_spriteram;
26   UINT8 *m_text_videoram;
2027   required_shared_ptr<UINT16> m_spr_pal_clut;
2128   required_shared_ptr<UINT16> m_fg_videoram;
2229   required_shared_ptr<UINT16> m_bg_videoram;
r31275r31276
8895   void armedf_drawgfx(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx,
8996                  UINT32 code,UINT32 color, UINT32 clut,int flipx,int flipy,int offsx,int offsy,
9097                  int transparent_color);
91
92   required_device<cpu_device> m_maincpu;
93   optional_device<cpu_device> m_extra;
94   required_device<gfxdecode_device> m_gfxdecode;
95   required_device<palette_device> m_palette;
9698};
9799
98100class bigfghtr_state : public armedf_state
trunk/src/mame/video/armedf.c
r31275r31276
128128
129129   m_text_videoram = auto_alloc_array(machine(), UINT8, 0x1000);
130130   memset(m_text_videoram, 0x00, 0x1000);
131   
132   save_pointer(NAME(m_text_videoram), 0x1000);
131133}
132134
133135VIDEO_START_MEMBER(armedf_state,armedf)
r31275r31276
148150
149151   m_text_videoram = auto_alloc_array(machine(), UINT8, 0x1000);
150152   memset(m_text_videoram, 0x00, 0x1000);
153   
154   save_pointer(NAME(m_text_videoram), 0x1000);
151155}
152156
153157/***************************************************************************

Previous 199869 Revisions Next


© 1997-2024 The MAME Team