Previous 199869 Revisions Next

r33276 Friday 7th November, 2014 at 22:02:53 UTC by Alex W. Jackson
twin16: fix savestate regression after tilemap conversion (nw)
[src/mame/includes]twin16.h
[src/mame/video]twin16.c

trunk/src/mame/includes/twin16.h
r241787r241788
7777   INTERRUPT_GEN_MEMBER(CPUA_interrupt);
7878   INTERRUPT_GEN_MEMBER(CPUB_interrupt);
7979   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(  );
8480   DECLARE_WRITE8_MEMBER(volume_callback);
8581protected:
8682   virtual void machine_start();
r241787r241788
8884   virtual void video_start();
8985
9086   virtual void tile_get_info(tile_data &tileinfo, UINT16 data, int color_base);
87private:
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();
9193};
9294
9395class fround_state : public twin16_state
trunk/src/mame/video/twin16.c
r241787r241788
6262      m_gfxdecode->gfx(1)->mark_dirty(offset / 16);
6363}
6464
65void twin16_state::twin16_postload()
66{
67   m_gfxdecode->gfx(1)->mark_all_dirty();
68}
69
6570WRITE16_MEMBER(fround_state::gfx_bank_w)
6671{
6772   int changed = 0;
r241787r241788
452457   save_item(NAME(m_need_process_spriteram));
453458   save_item(NAME(m_video_register));
454459   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));
455463}
456464
457465void fround_state::video_start()


Previous 199869 Revisions Next


© 1997-2024 The MAME Team