trunk/src/mame/includes/20pacgal.h
| r31722 | r31723 | |
| 68 | 68 | void draw_stars(bitmap_rgb32 &bitmap, const rectangle &cliprect ); |
| 69 | 69 | void draw_sprite(bitmap_rgb32 &bitmap, int y, int x, |
| 70 | 70 | UINT8 code, UINT8 color, int flip_y, int flip_x); |
| 71 | | |
| 71 | void common_save_state(); |
| 72 | 72 | }; |
| 73 | 73 | |
| 74 | 74 | |
| r31722 | r31723 | |
| 80 | 80 | { } |
| 81 | 81 | |
| 82 | 82 | DECLARE_READ8_MEMBER( _25pacman_io_87_r ); |
| 83 | | |
| 83 | virtual void machine_start(); |
| 84 | 84 | }; |
| 85 | 85 | |
| 86 | 86 | /*----------- defined in video/20pacgal.c -----------*/ |
trunk/src/mame/drivers/20pacgal.c
| r31722 | r31723 | |
| 354 | 354 | * |
| 355 | 355 | *************************************/ |
| 356 | 356 | |
| 357 | | void _20pacgal_state::machine_start() |
| 357 | void _20pacgal_state::common_save_state() |
| 358 | 358 | { |
| 359 | 359 | save_item(NAME(m_game_selected)); |
| 360 | 360 | save_item(NAME(m_ram_48000)); |
| r31722 | r31723 | |
| 362 | 362 | save_item(NAME(m_sprite_gfx_ram)); |
| 363 | 363 | save_item(NAME(m_sprite_ram)); |
| 364 | 364 | save_item(NAME(m_sprite_color_lookup)); |
| 365 | } |
| 366 | |
| 367 | void _20pacgal_state::machine_start() |
| 368 | { |
| 369 | common_save_state(); |
| 370 | machine().save().register_postload(save_prepost_delegate(FUNC(_20pacgal_state::set_bankptr), this)); //currently not used by 25pacman |
| 371 | } |
| 365 | 372 | |
| 366 | | machine().save().register_postload(save_prepost_delegate(FUNC(_20pacgal_state::set_bankptr), this)); |
| 373 | void _25pacman_state::machine_start() |
| 374 | { |
| 375 | common_save_state(); |
| 367 | 376 | } |
| 368 | 377 | |
| 369 | 378 | void _20pacgal_state::machine_reset() |