trunk/src/mame/includes/twin16.h
r241787 | r241788 | |
77 | 77 | INTERRUPT_GEN_MEMBER(CPUA_interrupt); |
78 | 78 | INTERRUPT_GEN_MEMBER(CPUB_interrupt); |
79 | 79 | TIMER_CALLBACK_MEMBER(sprite_tick); |
80 | | int set_sprite_timer( ); |
81 | | void spriteram_process( ); |
82 | | void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap ); |
83 | | int spriteram_process_enable( ); |
84 | 80 | DECLARE_WRITE8_MEMBER(volume_callback); |
85 | 81 | protected: |
86 | 82 | virtual void machine_start(); |
r241787 | r241788 | |
88 | 84 | virtual void video_start(); |
89 | 85 | |
90 | 86 | virtual void tile_get_info(tile_data &tileinfo, UINT16 data, int color_base); |
| 87 | private: |
| 88 | int set_sprite_timer(); |
| 89 | void spriteram_process(); |
| 90 | void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap ); |
| 91 | int spriteram_process_enable(); |
| 92 | void twin16_postload(); |
91 | 93 | }; |
92 | 94 | |
93 | 95 | class fround_state : public twin16_state |
trunk/src/mame/video/twin16.c
r241787 | r241788 | |
62 | 62 | m_gfxdecode->gfx(1)->mark_dirty(offset / 16); |
63 | 63 | } |
64 | 64 | |
| 65 | void twin16_state::twin16_postload() |
| 66 | { |
| 67 | m_gfxdecode->gfx(1)->mark_all_dirty(); |
| 68 | } |
| 69 | |
65 | 70 | WRITE16_MEMBER(fround_state::gfx_bank_w) |
66 | 71 | { |
67 | 72 | int changed = 0; |
r241787 | r241788 | |
452 | 457 | save_item(NAME(m_need_process_spriteram)); |
453 | 458 | save_item(NAME(m_video_register)); |
454 | 459 | save_item(NAME(m_sprite_busy)); |
| 460 | |
| 461 | if (!m_is_fround) |
| 462 | machine().save().register_postload(save_prepost_delegate(FUNC(twin16_state::twin16_postload), this)); |
455 | 463 | } |
456 | 464 | |
457 | 465 | void fround_state::video_start() |