mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fixed 25pacman save state crash (nw)
This commit is contained in:
parent
5cb2c5e3d7
commit
777b8f4d48
@ -354,7 +354,7 @@ INPUT_PORTS_END
|
||||
*
|
||||
*************************************/
|
||||
|
||||
void _20pacgal_state::machine_start()
|
||||
void _20pacgal_state::common_save_state()
|
||||
{
|
||||
save_item(NAME(m_game_selected));
|
||||
save_item(NAME(m_ram_48000));
|
||||
@ -362,8 +362,17 @@ void _20pacgal_state::machine_start()
|
||||
save_item(NAME(m_sprite_gfx_ram));
|
||||
save_item(NAME(m_sprite_ram));
|
||||
save_item(NAME(m_sprite_color_lookup));
|
||||
}
|
||||
|
||||
void _20pacgal_state::machine_start()
|
||||
{
|
||||
common_save_state();
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(_20pacgal_state::set_bankptr), this)); //currently not used by 25pacman
|
||||
}
|
||||
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(_20pacgal_state::set_bankptr), this));
|
||||
void _25pacman_state::machine_start()
|
||||
{
|
||||
common_save_state();
|
||||
}
|
||||
|
||||
void _20pacgal_state::machine_reset()
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
void draw_stars(bitmap_rgb32 &bitmap, const rectangle &cliprect );
|
||||
void draw_sprite(bitmap_rgb32 &bitmap, int y, int x,
|
||||
UINT8 code, UINT8 color, int flip_y, int flip_x);
|
||||
|
||||
void common_save_state();
|
||||
};
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ public:
|
||||
{ }
|
||||
|
||||
DECLARE_READ8_MEMBER( _25pacman_io_87_r );
|
||||
|
||||
virtual void machine_start();
|
||||
};
|
||||
|
||||
/*----------- defined in video/20pacgal.c -----------*/
|
||||
|
Loading…
Reference in New Issue
Block a user